|
From: Doug K. <dou...@us...> - 2002-03-10 03:23:57
|
Update of /cvsroot/phpbb/phpBB2/admin
In directory usw-pr-cvs1:/tmp/cvs-serv23080/admin
Modified Files:
admin_ranks.php
Log Message:
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
Index: admin_ranks.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/admin/admin_ranks.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** admin_ranks.php 24 Jan 2002 02:51:00 -0000 1.10
--- admin_ranks.php 10 Mar 2002 03:23:54 -0000 1.11
***************
*** 208,214 ****
WHERE rank_id = $rank_id";
! if( !$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Couldn't delete rank data", "", __LINE__, __FILE__, $sql);
}
--- 208,223 ----
WHERE rank_id = $rank_id";
! 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);
}
|