mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10605] Reset user´s pm count to 0 when deleting his PMs
PHPBB3-10605
This commit is contained in:
parent
0397b46217
commit
b9324577ac
1 changed files with 11 additions and 1 deletions
|
@ -1169,7 +1169,17 @@ function phpbb_delete_user_pms($user_id)
|
|||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
// Reset the user´s pm count to 0
|
||||
if (isset($undelivered_user[$user_id]))
|
||||
{
|
||||
$sql = 'UPDATE ' . USERS_TABLE . '
|
||||
SET user_new_privmsg = 0,
|
||||
user_unread_privmsg = 0
|
||||
WHERE user_id = ' . $user_id;
|
||||
$db->sql_query($sql);
|
||||
unset($undelivered_user[$user_id]);
|
||||
}
|
||||
|
||||
foreach ($undelivered_user as $_user_id => $count)
|
||||
{
|
||||
$sql = 'UPDATE ' . USERS_TABLE . '
|
||||
|
|
Loading…
Add table
Reference in a new issue