diff --git a/lib/settings.php b/lib/settings.php index a72357b..f3f1c49 100644 --- a/lib/settings.php +++ b/lib/settings.php @@ -321,11 +321,11 @@ if ($_SESSION['loggedIn']) { } if ((!$_SESSION['loggedIn'] || $ICEcoder["password"] == "") && !strpos($_SERVER['SCRIPT_NAME'],"lib/settings.php")) { - if (file_exists('settings.php')) { - header('Location: settings.php'); + if (file_exists('lib/settings.php')) { + header('Location: lib/settings.php'); die(); } else { - header('Location: lib/settings.php'); + header('Location: settings.php'); die(); } // If we're due to show the settings screen