diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-12-02 16:39:50 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-12-02 16:39:50 +0100 |
commit | c60caace5dff459599e4385d27362fedd20be5d6 (patch) | |
tree | a58a0c7af873210d46e1675b46b6a367f9ca4a59 /phpBB | |
parent | 1ee9cc91d4d179bfd3e69ebfaf13215608cfc46f (diff) | |
parent | 8f841197430c6b8dfdbd43ef255e9986584a07ee (diff) | |
download | forums-c60caace5dff459599e4385d27362fedd20be5d6.tar forums-c60caace5dff459599e4385d27362fedd20be5d6.tar.gz forums-c60caace5dff459599e4385d27362fedd20be5d6.tar.bz2 forums-c60caace5dff459599e4385d27362fedd20be5d6.tar.xz forums-c60caace5dff459599e4385d27362fedd20be5d6.zip |
Merge pull request #4552 from nicebb/ticket/13757
[ticket/13757] Properly fix bug with negative PM count
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions_privmsgs.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php index d7a87ca356..4aad1746d5 100644 --- a/phpBB/includes/functions_privmsgs.php +++ b/phpBB/includes/functions_privmsgs.php @@ -889,7 +889,8 @@ function update_unread_status($unread, $msg_id, $user_id, $folder_id) SET pm_unread = 0 WHERE msg_id = $msg_id AND user_id = $user_id - AND folder_id = $folder_id"; + AND folder_id = $folder_id + AND pm_unread = 1"; $db->sql_query($sql); // If the message is already marked as read, we just skip the rest to avoid negative PM count |