diff options
author | Jim Wigginton <terrafrost@phpbb.com> | 2009-01-11 16:30:58 +0000 |
---|---|---|
committer | Jim Wigginton <terrafrost@phpbb.com> | 2009-01-11 16:30:58 +0000 |
commit | 7da3e16ffd950f4eac02658168b393777737a23e (patch) | |
tree | de074e2e4cf9ba39ba5988876a60ab4a5089681a /phpBB/includes/functions_user.php | |
parent | 1553a342920af998ce113e83a6a5a829f8fa5457 (diff) | |
download | forums-7da3e16ffd950f4eac02658168b393777737a23e.tar forums-7da3e16ffd950f4eac02658168b393777737a23e.tar.gz forums-7da3e16ffd950f4eac02658168b393777737a23e.tar.bz2 forums-7da3e16ffd950f4eac02658168b393777737a23e.tar.xz forums-7da3e16ffd950f4eac02658168b393777737a23e.zip |
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
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index ea62a75306..3a3c5188bf 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -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) } } -?>
\ No newline at end of file +?> |