From ce5b2a114f8faa5989a576656018e57bf5782323 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 10 Jan 2002 14:08:59 +0000 Subject: [PATCH] Fix bug #500322 git-svn-id: file:///svn/phpbb/trunk@1835 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_groups.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/phpBB/admin/admin_groups.php b/phpBB/admin/admin_groups.php index 9883ae4211..cf9fb00783 100644 --- a/phpBB/admin/admin_groups.php +++ b/phpBB/admin/admin_groups.php @@ -171,6 +171,13 @@ else if( isset($HTTP_POST_VARS['group_update']) ) message_die(GENERAL_ERROR, "Couldn't update group", "", __LINE__, __FILE__, $sql); } + $sql = "DELETE FROM " . USER_GROUP_TABLE . " + WHERE group_id = " . $group_id; + if ( !$result = $db->sql_query($sql) ) + { + message_die(GENERAL_ERROR, "Couldn't update user_group", "", __LINE__, __FILE__, $sql); + } + $message = $lang['Deleted_group'] . "

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

" . sprintf($lang['Click_return_admin_index'], "", "");; message_die(GENERAL_MESSAGE, $message);