mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-23 15:59:49 +02:00
Doh, note to self make sure you check the right field when doing stuff like this
Fixed bug #485452 git-svn-id: file:///svn/phpbb/trunk@1450 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
31790512b2
commit
2299d5e25c
@ -59,6 +59,7 @@ if( isset($HTTP_POST_VARS['groupstatus']) && $group_id )
|
||||
$sql = "SELECT group_moderator
|
||||
FROM " . GROUPS_TABLE . "
|
||||
WHERE group_id = $group_id";
|
||||
|
||||
if( !$result = $db->sql_query($sql) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Couldn't obtain user and group information", "", __LINE__, __FILE__, $sql);
|
||||
@ -66,7 +67,7 @@ if( isset($HTTP_POST_VARS['groupstatus']) && $group_id )
|
||||
|
||||
$row = $db->sql_fetchrow($result);
|
||||
|
||||
if( $row['user_id'] != $userdata['user_id'] && $userdata['user_level'] != ADMIN )
|
||||
if( $row['group_moderator'] != $userdata['user_id'] && $userdata['user_level'] != ADMIN )
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
"META" => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
|
||||
|
Loading…
x
Reference in New Issue
Block a user