Update check_auth.php
This commit is contained in:
parent
2ed2fe32b4
commit
08ee1d0cd6
|
|
@ -296,7 +296,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//if logged in, redirect to login destination
|
//if logged in, redirect to login destination
|
||||||
if (strlen($_SESSION['login']['destination']['url']) > 0) {
|
if (isset($_SESSION['login']['destination']['url'])) {
|
||||||
header("Location: ".$_SESSION['login']['destination']['url']);
|
header("Location: ".$_SESSION['login']['destination']['url']);
|
||||||
} elseif (file_exists($_SERVER["PROJECT_ROOT"]."/core/user_settings/user_dashboard.php")) {
|
} elseif (file_exists($_SERVER["PROJECT_ROOT"]."/core/user_settings/user_dashboard.php")) {
|
||||||
header("Location: ".PROJECT_PATH."/core/user_settings/user_dashboard.php");
|
header("Location: ".PROJECT_PATH."/core/user_settings/user_dashboard.php");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue