Add elseif onto if statement in lib/settings.php

This commit is contained in:
aharris88
2013-02-01 11:56:29 -06:00
parent d7d483ef9c
commit 991908bd8d

View File

@@ -236,7 +236,7 @@ if ((!$_SESSION['loggedIn'] || $ICEcoder["accountPassword"] == "") && !strpos($_
header('Location: lib/settings.php');
}
// If we're due to show the settings screen
if (!$_SESSION['loggedIn']) {
elseif (!$_SESSION['loggedIn']) {
// If the password hasn't been set and we're setting it
if ($ICEcoder["accountPassword"] == "" && isset($_POST['accountPassword'])) {
$password = generateHash(strClean($_POST['accountPassword']));