mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-11 12:16:38 +02:00
[ticket/10605] Use unset() instead of checking user_id over and over again.
PHPBB3-10605
This commit is contained in:
@ -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) . '
|
||||
|
Reference in New Issue
Block a user