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);