aboutsummaryrefslogtreecommitdiffstats
path: root/include/taxonomy.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-02 21:57:18 -0700
committerfriendica <info@friendica.com>2013-07-02 21:57:18 -0700
commitd3b745db5d8d10aa92f1e41f61adc1f7efdf0753 (patch)
tree10f08e221d9a9e0e6856f989864dccfe8f19f8e0 /include/taxonomy.php
parent15ae313595f61424c7b8039dee6d332f5aef88c5 (diff)
downloadvolse-hubzilla-d3b745db5d8d10aa92f1e41f61adc1f7efdf0753.tar.gz
volse-hubzilla-d3b745db5d8d10aa92f1e41f61adc1f7efdf0753.tar.bz2
volse-hubzilla-d3b745db5d8d10aa92f1e41f61adc1f7efdf0753.zip
bitwise logic issue comparing with multiple bits
Diffstat (limited to 'include/taxonomy.php')
-rw-r--r--include/taxonomy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php
index 1f2b30731..e9cc0faf4 100644
--- a/include/taxonomy.php
+++ b/include/taxonomy.php
@@ -99,7 +99,7 @@ function format_term_for_display($term) {
function tagadelic($uid, $count = 0, $flags = 0, $type = TERM_HASHTAG) {
if($flags)
- $sql_options = " and (item_flags & " . intval($flags) . ") ";
+ $sql_options = " and ((item_flags & " . intval($flags) . ") = " . intval($flags) . ") ";
// 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.type = %d