aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-29 16:00:34 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-29 16:00:34 +0200
commit6eeac03a0e42ae88218b76948aedfa541022718c (patch)
tree49e4207dee40424ff55736f2f3f27662ad9bfdc2
parent7ca8f7b5ccd8f0526d7b96676a15440d8068d58d (diff)
downloadvolse-hubzilla-6eeac03a0e42ae88218b76948aedfa541022718c.tar.gz
volse-hubzilla-6eeac03a0e42ae88218b76948aedfa541022718c.tar.bz2
volse-hubzilla-6eeac03a0e42ae88218b76948aedfa541022718c.zip
appman: query terms also by uid to prevent double entries
-rw-r--r--Zotlabs/Module/Appman.php6
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) {