get notification backend working again

This commit is contained in:
friendica 2012-12-19 16:58:25 -08:00
parent 893ba371a9
commit cad8fa6b35

View File

@ -158,7 +158,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 uid = %d",
WHERE (item_restrict = %d) and ( item_flags & %d ) and uid = %d",
intval(ITEM_VISIBLE),
intval(ITEM_UNSEEN),
intval(local_user())