diff --git a/lib/settings.php b/lib/settings.php index af0b52b..84b3632 100644 --- a/lib/settings.php +++ b/lib/settings.php @@ -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']));