added missing / in path and set redirect correctly

This commit is contained in:
Matthew Vale 2015-12-31 09:40:59 +00:00
parent 1b3e475b0f
commit 1f2222d0a4
1 changed files with 2 additions and 2 deletions

View File

@ -59,9 +59,9 @@ include "root.php";
if (strlen($_SESSION["username"]) > 0) {
if (strlen($_SESSION['login']['destination']['url']) > 0) {
header("Location: ".$_SESSION['login']['destination']['url']);
}elseif(file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."core/user_settings/user_dashboard.php"))
}elseif(file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/core/user_settings/user_dashboard.php"))
{
header("Location: ".$_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."core/user_settings/user_dashboard.php");
header("Location: ".PROJECT_PATH."/core/user_settings/user_dashboard.php");
}
else {
require_once "resources/header.php";