aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-03-18 09:35:53 +0100
committerMario <mario@mariovavti.com>2019-03-18 09:35:53 +0100
commit51156d058232969d55032f045859e46bb3a09162 (patch)
tree4f2dea61bdc49be73de4ae00fc4e22937361df3e /include/channel.php
parente28bde6ccdb03b370df1dbc8654d69c905b8a235 (diff)
parentea9925f489602529891c0ed468cf35117e7ef454 (diff)
downloadvolse-hubzilla-51156d058232969d55032f045859e46bb3a09162.tar.gz
volse-hubzilla-51156d058232969d55032f045859e46bb3a09162.tar.bz2
volse-hubzilla-51156d058232969d55032f045859e46bb3a09162.zip
Merge branch 'dev' into 'dev'
misc fixes See merge request hubzilla/core!1558
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php
index 7646de151..654bbdb05 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -948,6 +948,18 @@ function identity_basic_export($channel_id, $sections = null) {
}
$ret['app'] = $r;
}
+ $r = q("select * from app where app_channel = %d and app_system = 1",
+ intval($channel_id)
+ );
+ if($r) {
+ for($x = 0; $x < count($r); $x ++) {
+ $r[$x]['term'] = q("select * from term where otype = %d and oid = %d",
+ intval(TERM_OBJ_APP),
+ intval($r[$x]['id'])
+ );
+ }
+ $ret['sysapp'] = $r;
+ }
}
if(in_array('chatrooms',$sections)) {