diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-01-10 14:08:59 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-01-10 14:08:59 +0000 |
commit | ce5b2a114f8faa5989a576656018e57bf5782323 (patch) | |
tree | 4fa987dc2a9e89d522b1ae6ebbcafc16033b9cf1 /phpBB/admin/admin_groups.php | |
parent | 58ae7ec6b274b7a30d57f337b2407e2904e27c75 (diff) | |
download | forums-ce5b2a114f8faa5989a576656018e57bf5782323.tar forums-ce5b2a114f8faa5989a576656018e57bf5782323.tar.gz forums-ce5b2a114f8faa5989a576656018e57bf5782323.tar.bz2 forums-ce5b2a114f8faa5989a576656018e57bf5782323.tar.xz forums-ce5b2a114f8faa5989a576656018e57bf5782323.zip |
Fix bug #500322
git-svn-id: file:///svn/phpbb/trunk@1835 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_groups.php')
-rw-r--r-- | phpBB/admin/admin_groups.php | 7 |
1 files changed, 7 insertions, 0 deletions
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'] . "<br /><br />" . sprintf($lang['Click_return_groupsadmin'], "<a href=\"" . append_sid("admin_groups.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");; message_die(GENERAL_MESSAGE, $message); |