aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ping.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-10-28 22:08:08 -0700
committerfriendica <info@friendica.com>2012-10-28 22:08:08 -0700
commite1388761998f231de0c321e6652f7db9ed567c09 (patch)
treed72a64c56e657f73c5568b7f57af9b0c238f8500 /mod/ping.php
parentd0d8971a69040c9dfd0d53a346135979b881c020 (diff)
downloadvolse-hubzilla-e1388761998f231de0c321e6652f7db9ed567c09.tar.gz
volse-hubzilla-e1388761998f231de0c321e6652f7db9ed567c09.tar.bz2
volse-hubzilla-e1388761998f231de0c321e6652f7db9ed567c09.zip
fix updating of bitwise 'unseen' to account for mysql operator precedence
Diffstat (limited to 'mod/ping.php')
-rw-r--r--mod/ping.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/ping.php b/mod/ping.php
index 60ca7f734..a679c9342 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -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())