diff options
author | Mario <mario@mariovavti.com> | 2021-10-04 11:25:52 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-10-04 11:25:52 +0000 |
commit | 11ea7bf0fc7f35cb205e0de40622c88a0bed9f66 (patch) | |
tree | e86f62009e09d1b3b64b6aa5b6c24649bf014e0c /Zotlabs/Lib/Apps.php | |
parent | 6da7fe7d27b30f691c07e5fb767afc904c3063c0 (diff) | |
download | volse-hubzilla-11ea7bf0fc7f35cb205e0de40622c88a0bed9f66.tar.gz volse-hubzilla-11ea7bf0fc7f35cb205e0de40622c88a0bed9f66.tar.bz2 volse-hubzilla-11ea7bf0fc7f35cb205e0de40622c88a0bed9f66.zip |
app sync fixes - part 1
Diffstat (limited to 'Zotlabs/Lib/Apps.php')
-rw-r--r-- | Zotlabs/Lib/Apps.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php index 89be58311..b903da16b 100644 --- a/Zotlabs/Lib/Apps.php +++ b/Zotlabs/Lib/Apps.php @@ -643,10 +643,10 @@ class Apps { ); } if (intval($r[0]['app_system'])) { - Libsync::build_sync_packet($uid, ['sysapp' => $r[0]]); + Libsync::build_sync_packet($uid, ['sysapp' => $r]); } else { - Libsync::build_sync_packet($uid, ['app' => $r[0]]); + Libsync::build_sync_packet($uid, ['app' => $r]); } } } @@ -711,8 +711,12 @@ class Apps { intval($uid) ); } - if(! intval($x[0]['app_system'])) { - Libsync::build_sync_packet($uid,array('app' => $x)); + + if (intval($x[0]['app_system'])) { + Libsync::build_sync_packet($uid, ['sysapp' => $x]); + } + else { + Libsync::build_sync_packet($uid, ['app' => $x]); } } else { |