mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
- fix for problem with demoted admins on rare occassions
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5149 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
9abeaa1177
commit
4434757882
1 changed files with 1 additions and 1 deletions
|
@ -543,7 +543,7 @@ if ( isset($HTTP_POST_VARS['submit']) && ( ( $mode == 'user' && $user_id ) || (
|
|||
{
|
||||
$sql = "UPDATE " . USERS_TABLE . "
|
||||
SET user_level = " . USER . "
|
||||
WHERE user_id IN (" . implode(', ', $group_user) . ")";
|
||||
WHERE user_id IN (" . implode(', ', $group_user) . ") AND user_level = " . MOD;
|
||||
if ( !($result = $db->sql_query($sql)) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql);
|
||||
|
|
Loading…
Add table
Reference in a new issue