diff options
author | friendica <info@friendica.com> | 2012-10-28 22:08:08 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-10-28 22:08:08 -0700 |
commit | e1388761998f231de0c321e6652f7db9ed567c09 (patch) | |
tree | d72a64c56e657f73c5568b7f57af9b0c238f8500 /mod/network.php | |
parent | d0d8971a69040c9dfd0d53a346135979b881c020 (diff) | |
download | volse-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/network.php')
-rw-r--r-- | mod/network.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/network.php b/mod/network.php index 8793aa51a..e1629bdd6 100644 --- a/mod/network.php +++ b/mod/network.php @@ -678,10 +678,10 @@ function network_content(&$a, $update = 0, $load = false) { // We aren't going to try and figure out at the item, group, and page // level which items you've seen and which you haven't. If you're looking // at the top level network page just mark everything seen. - + if((! $group) && (! $cid) && (! $star)) { - $r = q("UPDATE `item` SET item_flags = item_flags & (! %d) - WHERE item_flags & %d AND `uid` = %d", + $r = q("UPDATE `item` SET item_flags = ( item_flags ^ %d) + WHERE (item_flags & %d) AND `uid` = %d", intval(ITEM_UNSEEN), intval(ITEM_UNSEEN), intval(local_user()) |