mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 07:35:14 +00:00
bitwise logic issue comparing with multiple bits
This commit is contained in:
parent
15ae313595
commit
d3b745db5d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue