aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_privmsgs.php')
-rw-r--r--phpBB/includes/functions_privmsgs.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index 34f16ea9da..59dea50094 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -1134,13 +1134,9 @@ function phpbb_delete_user_pms($user_id)
$db->sql_query($sql);
}
+ unset($undelivered_user[$user_id]);
foreach ($undelivered_user as $_user_id => $ary)
{
- if ($_user_id == $user_id)
- {
- continue;
- }
-
$sql = 'UPDATE ' . USERS_TABLE . '
SET user_new_privmsg = user_new_privmsg - ' . sizeof($ary) . ',
user_unread_privmsg = user_unread_privmsg - ' . sizeof($ary) . '