diff options
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 7eb4f29109..a54d753787 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 | 
