Removed some sanity checks that caused unexpected behaviour

git-svn-id: file:///svn/phpbb/trunk@1916 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Bart van Bragt 2002-01-21 15:15:10 +00:00
parent 615ff74d5b
commit 373944b169

View file

@ -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