diff options
author | zotlabs <mike@macgirvin.com> | 2018-03-22 21:23:12 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-03-22 21:23:12 -0700 |
commit | af8cbf000fb1433b7c7d2c6c4543980f01ba69a9 (patch) | |
tree | d9cd1a77692a84aaa93d3bfad4cfb9f561366b62 | |
parent | 034032c7c27ca0e0ba0720aeea84ba6272eb6d36 (diff) | |
download | volse-hubzilla-af8cbf000fb1433b7c7d2c6c4543980f01ba69a9.tar.gz volse-hubzilla-af8cbf000fb1433b7c7d2c6c4543980f01ba69a9.tar.bz2 volse-hubzilla-af8cbf000fb1433b7c7d2c6c4543980f01ba69a9.zip |
tagadelic was being overly protective of permissions.
-rw-r--r-- | include/taxonomy.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php index 393b8718e..4a3818096 100644 --- a/include/taxonomy.php +++ b/include/taxonomy.php @@ -182,11 +182,10 @@ function tagadelic($uid, $count = 0, $authors = '', $owner = '', $flags = 0, $re $sql_options .= " and owner_xchan = '" . dbesc($owner) . "' "; } - // Fetch tags $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 - and otype = %d and item_type = %d and item_private = 0 + and otype = %d and item_type = %d $sql_options $item_normal group by term order by total desc %s", intval($uid), @@ -196,6 +195,7 @@ function tagadelic($uid, $count = 0, $authors = '', $owner = '', $flags = 0, $re ((intval($count)) ? "limit $count" : '') ); + if(! $r) return array(); |