diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-29 16:00:34 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-29 16:00:34 +0200 |
commit | 6eeac03a0e42ae88218b76948aedfa541022718c (patch) | |
tree | 49e4207dee40424ff55736f2f3f27662ad9bfdc2 /Zotlabs/Module/Appman.php | |
parent | 7ca8f7b5ccd8f0526d7b96676a15440d8068d58d (diff) | |
download | volse-hubzilla-6eeac03a0e42ae88218b76948aedfa541022718c.tar.gz volse-hubzilla-6eeac03a0e42ae88218b76948aedfa541022718c.tar.bz2 volse-hubzilla-6eeac03a0e42ae88218b76948aedfa541022718c.zip |
appman: query terms also by uid to prevent double entries
Diffstat (limited to 'Zotlabs/Module/Appman.php')
-rw-r--r-- | Zotlabs/Module/Appman.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Appman.php b/Zotlabs/Module/Appman.php index 3ebafafa4..f50dcc2ab 100644 --- a/Zotlabs/Module/Appman.php +++ b/Zotlabs/Module/Appman.php @@ -113,10 +113,12 @@ class Appman extends \Zotlabs\Web\Controller { if($r) { $app = $r[0]; - $term = q("select * from term where otype = %d and oid = %d", + $term = q("select * from term where otype = %d and oid = %d and uid = %d", intval(TERM_OBJ_APP), - intval($r[0]['id']) + intval($r[0]['id']), + intval(local_channel()) ); + if($term) { $app['categories'] = ''; foreach($term as $t) { |