fix updating of bitwise 'unseen' to account for mysql operator precedence
This commit is contained in:
@@ -127,7 +127,7 @@ function ping_init(&$a) {
|
||||
$t1 = dba_timer();
|
||||
|
||||
$r = q("SELECT id, item_restrict, item_flags FROM item
|
||||
WHERE item_restrict = %d and item_flags & %d and `item`.`uid` = %d",
|
||||
WHERE item_restrict = %d and ( item_flags & %d ) and uid = %d",
|
||||
intval(ITEM_VISIBLE),
|
||||
intval(ITEM_UNSEEN),
|
||||
intval(local_user())
|
||||
|
||||
Reference in New Issue
Block a user