diff options
author | Bart van Bragt <bartvb@users.sourceforge.net> | 2002-01-21 15:15:10 +0000 |
---|---|---|
committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2002-01-21 15:15:10 +0000 |
commit | 373944b1696410897a05eab350dcc0bfe492d473 (patch) | |
tree | e6ba5c0f6110b409bb8e31085008d687dbe4bccd /phpBB/admin | |
parent | 615ff74d5ba7488f325032fab90ff525554e6456 (diff) | |
download | forums-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.php | 22 |
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 |