diff options
| author | Bart van Bragt <bartvb@users.sourceforge.net> | 2002-01-19 20:35:19 +0000 |
|---|---|---|
| committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2002-01-19 20:35:19 +0000 |
| commit | 1469c7a13135fc7a5588e12ca82e95fb047597f0 (patch) | |
| tree | 8a71bbe5836641e956255cc43bdf0f519081f654 /phpBB/admin/admin_forums.php | |
| parent | 7a7f46a54d9aa00a291af9d7b16b312d975ef605 (diff) | |
| download | forums-1469c7a13135fc7a5588e12ca82e95fb047597f0.tar forums-1469c7a13135fc7a5588e12ca82e95fb047597f0.tar.gz forums-1469c7a13135fc7a5588e12ca82e95fb047597f0.tar.bz2 forums-1469c7a13135fc7a5588e12ca82e95fb047597f0.tar.xz forums-1469c7a13135fc7a5588e12ca82e95fb047597f0.zip | |
Delete auth entries for forum upon deletion (#505713)
git-svn-id: file:///svn/phpbb/trunk@1914 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_forums.php')
| -rw-r--r-- | phpBB/admin/admin_forums.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/admin/admin_forums.php b/phpBB/admin/admin_forums.php index 434c09e8c9..fdefe4cb5d 100644 --- a/phpBB/admin/admin_forums.php +++ b/phpBB/admin/admin_forums.php @@ -640,6 +640,13 @@ if( !empty($mode) ) { message_die(GENERAL_ERROR, "Couldn't delete forum", "", __LINE__, __FILE__, $sql); } + + $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " + WHERE forum_id = $from_id"; + if( !$result = $db->sql_query($sql) ) + { + message_die(GENERAL_ERROR, "Couldn't delete forum", "", __LINE__, __FILE__, $sql); + } $message = $lang['Forums_updated'] . "<br /><br />" . sprintf($lang['Click_return_forumadmin'], "<a href=\"" . append_sid("admin_forums.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); |
