Skip to content

Commit

Permalink
Fix #2969
Browse files Browse the repository at this point in the history
Signed-off-by: John Rayes <live627@gmail.com>
  • Loading branch information
live627 committed Aug 15, 2015
1 parent 0fb7be5 commit d40e65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/LogInOut.php
Expand Up @@ -178,7 +178,7 @@ function Login2()
// Set up the cookie length. (if it's invalid, just fall through and use the default.)
if (isset($_POST['cookieneverexp']) || (!empty($_POST['cookielength']) && $_POST['cookielength'] == -1))
$modSettings['cookieTime'] = 3153600;
elseif (!empty($_POST['cookielength']) && ($_POST['cookielength'] >= 1 || $_POST['cookielength'] <= 525600))
elseif (!empty($_POST['cookielength']) && ($_POST['cookielength'] >= 1 && $_POST['cookielength'] <= 525600))
$modSettings['cookieTime'] = (int) $_POST['cookielength'];

loadLanguage('Login');
Expand Down

0 comments on commit d40e65d

Please sign in to comment.