mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Fixed bug #40015 - ban list table isn't updated upon user deletion
Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9249 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
1553a34292
commit
7da3e16ffd
2 changed files with 8 additions and 2 deletions
|
@ -87,6 +87,7 @@
|
|||
<a name="v304"></a><h3>1.i. Changes since 3.0.4</h3>
|
||||
|
||||
<ul>
|
||||
<li>[Fix] Delete user entry from ban list table upon user deletion (Bug #40015 - Patch by TerraFrost)</li>
|
||||
<li>[Fix] Missing read permission from calls to phpbb_chmod()</li>
|
||||
</ul>
|
||||
|
||||
|
@ -819,4 +820,4 @@
|
|||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -501,6 +501,11 @@ function user_delete($mode, $user_id, $post_username = false)
|
|||
|
||||
$cache->destroy('sql', MODERATOR_CACHE_TABLE);
|
||||
|
||||
// Delete the user_id from the banlist
|
||||
$sql = 'DELETE FROM ' . BANLIST_TABLE . '
|
||||
WHERE ban_userid = ' . $user_id;
|
||||
$db->sql_query($sql);
|
||||
|
||||
// Remove any undelivered mails...
|
||||
$sql = 'SELECT msg_id, user_id
|
||||
FROM ' . PRIVMSGS_TO_TABLE . '
|
||||
|
@ -3356,4 +3361,4 @@ function group_update_listings($group_id)
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue