mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 19:54:12 +02:00
fix some bugs - hopefully not breaking anything...
git-svn-id: file:///svn/phpbb/trunk@6342 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -246,6 +246,17 @@ class ucp_pm
|
||||
{
|
||||
place_pm_into_folder($global_privmsgs_rules, request_var('release', 0));
|
||||
$num_not_moved = $user->data['user_new_privmsg'];
|
||||
|
||||
// Make sure num_not_moved is valid.
|
||||
if ($num_not_moved < 0)
|
||||
{
|
||||
$sql = 'UPDATE ' . USERS_TABLE . '
|
||||
SET user_new_privmsg = 0, user_unread_privmsg = 0
|
||||
WHERE user_id = ' . $user->data['user_id'];
|
||||
$db->sql_query($sql);
|
||||
|
||||
$num_not_moved = $user->data['user_new_privmsg'] = $user->data['user_unread_privmsg'] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$msg_id && $folder_id == PRIVMSGS_NO_BOX)
|
||||
|
Reference in New Issue
Block a user