1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-24 09:30:34 +01:00

Merge pull request #4552 from nicebb/ticket/13757

[ticket/13757] Properly fix bug with negative PM count
This commit is contained in:
Marc Alexander 2016-12-02 16:39:50 +01:00
commit c60caace5d
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -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