diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-05-06 21:03:33 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-05-06 21:03:33 -0700 |
commit | 25b599a4bd831f175572c2388754e8734a255d77 (patch) | |
tree | 16559183d5d004c430dd8d83171bb9348e784021 /include/taxonomy.php | |
parent | 75b8bfc07a2431a6d4d5f2f72864d6cd3aa33cf6 (diff) | |
download | volse-hubzilla-25b599a4bd831f175572c2388754e8734a255d77.tar.gz volse-hubzilla-25b599a4bd831f175572c2388754e8734a255d77.tar.bz2 volse-hubzilla-25b599a4bd831f175572c2388754e8734a255d77.zip |
convert ITEM_WALL from bitfield to standalone
Diffstat (limited to 'include/taxonomy.php')
-rw-r--r-- | include/taxonomy.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php index fa540ac56..95b6ae1af 100644 --- a/include/taxonomy.php +++ b/include/taxonomy.php @@ -111,8 +111,12 @@ function tagadelic($uid, $count = 0, $authors = '', $flags = 0, $restrict = 0, $ $sql_options = item_permissions_sql($uid); $count = intval($count); - if($flags) - $sql_options .= " and ((item_flags & " . intval($flags) . ") = " . intval($flags) . ") "; + if($flags) { + if($flags == ITEM_WALL) + $sql_options .= " and item_wall = 1 "; + else + $sql_options .= " and ((item_flags & " . intval($flags) . ") = " . intval($flags) . ") "; + } if($authors) { if(! is_array($authors)) |