aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin/admin_groups.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-02-12 23:06:46 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-02-12 23:06:46 +0000
commit166de22e661812b387dccb1658f6c4f7d755866a (patch)
treeef017d4199d3dd1675136e0a23e8e790a2386304 /phpBB/admin/admin_groups.php
parent6bbd11cad59049d2a5bc75905ed2cd9f24a9d10a (diff)
downloadforums-166de22e661812b387dccb1658f6c4f7d755866a.tar
forums-166de22e661812b387dccb1658f6c4f7d755866a.tar.gz
forums-166de22e661812b387dccb1658f6c4f7d755866a.tar.bz2
forums-166de22e661812b387dccb1658f6c4f7d755866a.tar.xz
forums-166de22e661812b387dccb1658f6c4f7d755866a.zip
Deletion of groups wasn't deleting auth_access entries
git-svn-id: file:///svn/phpbb/trunk@2118 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_groups.php')
-rw-r--r--phpBB/admin/admin_groups.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/admin/admin_groups.php b/phpBB/admin/admin_groups.php
index 6a8ce5380a..2ee6768374 100644
--- a/phpBB/admin/admin_groups.php
+++ b/phpBB/admin/admin_groups.php
@@ -190,6 +190,13 @@ else if( isset($HTTP_POST_VARS['group_update']) )
message_die(GENERAL_ERROR, "Couldn't update user_group", "", __LINE__, __FILE__, $sql);
}
+ $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . "
+ WHERE group_id = " . $group_id;
+ if ( !$result = $db->sql_query($sql) )
+ {
+ message_die(GENERAL_ERROR, "Couldn't update auth_access", "", __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);