diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-10-04 20:32:19 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-10-04 20:32:19 +0200 |
commit | 4b48ff28681da55e2b4448c5e3f84ab6fa562df5 (patch) | |
tree | b2912201fec0f6aba0672e27203c0eb028e9591f /Zotlabs/Lib/Apps.php | |
parent | 3a38946f8a9e08fec5406fedac2577a890c8773d (diff) | |
download | volse-hubzilla-4b48ff28681da55e2b4448c5e3f84ab6fa562df5.tar.gz volse-hubzilla-4b48ff28681da55e2b4448c5e3f84ab6fa562df5.tar.bz2 volse-hubzilla-4b48ff28681da55e2b4448c5e3f84ab6fa562df5.zip |
also sync the undestroy action
Diffstat (limited to 'Zotlabs/Lib/Apps.php')
-rw-r--r-- | Zotlabs/Lib/Apps.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php index c3557e94e..7cba90c0e 100644 --- a/Zotlabs/Lib/Apps.php +++ b/Zotlabs/Lib/Apps.php @@ -742,13 +742,13 @@ class Apps { dbesc($app['guid']), intval($uid) ); - if($x) { - if($x[0]['app_system']) { - q("update app set app_deleted = 0 where app_id = '%s' and app_channel = %d", - dbesc($app['guid']), - intval($uid) - ); - } + if($x && intval($x[0]['app_deleted']) && $x[0]['app_system']) { + q("update app set app_deleted = 0 where app_id = '%s' and app_channel = %d", + dbesc($app['guid']), + intval($uid) + ); + $x[0]['app_deleted'] = 0; + Libsync::build_sync_packet($uid, ['sysapp' => $x]); } } } |