aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin
diff options
context:
space:
mode:
authorBart van Bragt <bartvb@users.sourceforge.net>2002-01-21 15:15:10 +0000
committerBart van Bragt <bartvb@users.sourceforge.net>2002-01-21 15:15:10 +0000
commit373944b1696410897a05eab350dcc0bfe492d473 (patch)
treee6ba5c0f6110b409bb8e31085008d687dbe4bccd /phpBB/admin
parent615ff74d5ba7488f325032fab90ff525554e6456 (diff)
downloadforums-373944b1696410897a05eab350dcc0bfe492d473.tar
forums-373944b1696410897a05eab350dcc0bfe492d473.tar.gz
forums-373944b1696410897a05eab350dcc0bfe492d473.tar.bz2
forums-373944b1696410897a05eab350dcc0bfe492d473.tar.xz
forums-373944b1696410897a05eab350dcc0bfe492d473.zip
Removed some sanity checks that caused unexpected behaviour
git-svn-id: file:///svn/phpbb/trunk@1916 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin')
-rw-r--r--phpBB/admin/admin_forumauth.php22
1 files changed, 2 insertions, 20 deletions
diff --git a/phpBB/admin/admin_forumauth.php b/phpBB/admin/admin_forumauth.php
index abdb92cd05..847f2b74cf 100644
--- a/phpBB/admin/admin_forumauth.php
+++ b/phpBB/admin/admin_forumauth.php
@@ -118,25 +118,7 @@ if( isset($HTTP_POST_VARS['submit']) )
{
for($i = 0; $i < count($forum_auth_fields); $i++)
{
- $value = $HTTP_POST_VARS[$forum_auth_fields[$i]];
-
- if($forum_auth_fields[$i] != 'auth_view')
- {
- if($HTTP_POST_VARS['auth_view'] > $value)
- {
- $value = $HTTP_POST_VARS['auth_view'];
- }
- }
-
- if($forum_auth_fields[$i] == 'auth_vote')
- {
- if( $HTTP_POST_VARS['auth_vote'] == AUTH_ALL )
- {
- $value = AUTH_REG;
- }
- }
-
- $sql .= $forum_auth_fields[$i] . " = " . $value;
+ $sql .= $forum_auth_fields[$i] . " = " . $HTTP_POST_VARS[$forum_auth_fields[$i]];
if($i < count($forum_auth_fields) - 1)
{
$sql .= ", ";
@@ -165,7 +147,7 @@ if( isset($HTTP_POST_VARS['submit']) )
$message = $lang['Forum_auth_updated'] . "<br /><br />" . $lang['Click'] . " <a href=\"" . append_sid("admin_forumauth.$phpEx") . "\">" . $lang['Here'] . "</a> " . $lang['return_forum_auth_admin'];
message_die(GENERAL_MESSAGE, $message);
-}
+} // End of submit
//
// Get required information, either all forums if