appman: query terms also by uid to prevent double entries

This commit is contained in:
Mario Vavti 2018-09-29 16:00:34 +02:00
parent 7ca8f7b5cc
commit 6eeac03a0e

View File

@ -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) {