mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
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:
parent
615ff74d5b
commit
373944b169
1 changed files with 2 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue