mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Add elseif onto if statement in lib/settings.php
This commit is contained in:
@@ -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']));
|
||||
|
||||
Reference in New Issue
Block a user