From 0383e1b80a7048863a16bb533a9c8d6c5e94f091 Mon Sep 17 00:00:00 2001 From: dougk_ff7 Date: Sun, 10 Mar 2002 03:23:56 +0000 Subject: Ok, this includes fixes for bugs numbered 526000, 524591, 520370, and 520872. Manily, a few typos were fixed, along with a problem in the jumpbox (fixed using a quick Javascript check, there really isn't another way without modifying some large portions of code), and a problem in the rank control panel. In other words, everything assigned to me (as of this morning) has been fixed. I also ran the lovely fix_files.sh, so CVS might be a little wacky and try to update everything. I hope not... That's it for now! dougk_ff7 git-svn-id: file:///svn/phpbb/trunk@2287 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_ranks.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'phpBB/admin') diff --git a/phpBB/admin/admin_ranks.php b/phpBB/admin/admin_ranks.php index 2d66de5e4f..9fed7ea367 100644 --- a/phpBB/admin/admin_ranks.php +++ b/phpBB/admin/admin_ranks.php @@ -207,10 +207,19 @@ if( $mode != "" ) $sql = "DELETE FROM " . RANKS_TABLE . " WHERE rank_id = $rank_id"; - if( !$result = $db->sql_query($sql)) + if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't delete rank data", "", __LINE__, __FILE__, $sql); } + + $sql = "UPDATE " . USERS_TABLE . " + SET user_rank = 0 + WHERE user_rank = $rank_id"; + + if( !$result = $db->sql_query($sql) ) + { + message_die(GENERAL_ERROR, $lang['No_update_ranks'], "", __LINE__, __FILE__, $sql); + } $message = $lang['Rank_removed'] . "

" . sprintf($lang['Click_return_rankadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); -- cgit v1.2.1