tagadelic was being overly protective of permissions.
This commit is contained in:
parent
034032c7c2
commit
af8cbf000f
@ -182,11 +182,10 @@ function tagadelic($uid, $count = 0, $authors = '', $owner = '', $flags = 0, $re
|
|||||||
$sql_options .= " and owner_xchan = '" . dbesc($owner) . "' ";
|
$sql_options .= " and owner_xchan = '" . dbesc($owner) . "' ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Fetch tags
|
// Fetch tags
|
||||||
$r = q("select term, count(term) as total from term left join item on term.oid = item.id
|
$r = q("select term, count(term) as total from term left join item on term.oid = item.id
|
||||||
where term.uid = %d and term.ttype = %d
|
where term.uid = %d and term.ttype = %d
|
||||||
and otype = %d and item_type = %d and item_private = 0
|
and otype = %d and item_type = %d
|
||||||
$sql_options $item_normal
|
$sql_options $item_normal
|
||||||
group by term order by total desc %s",
|
group by term order by total desc %s",
|
||||||
intval($uid),
|
intval($uid),
|
||||||
@ -196,6 +195,7 @@ function tagadelic($uid, $count = 0, $authors = '', $owner = '', $flags = 0, $re
|
|||||||
((intval($count)) ? "limit $count" : '')
|
((intval($count)) ? "limit $count" : '')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
if(! $r)
|
if(! $r)
|
||||||
return array();
|
return array();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user