Explorar o código

Merge pull request #1354 from mafoo/BugFix-Dashboard_Redirect

BugFix-Dashboard_Redirect
FusionPBX %!s(int64=9) %!d(string=hai) anos
pai
achega
5eb6ea41d4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      index.php

+ 2 - 2
index.php

@@ -59,9 +59,9 @@ include "root.php";
 	if (strlen($_SESSION["username"]) > 0) {
 	if (strlen($_SESSION["username"]) > 0) {
 		if (strlen($_SESSION['login']['destination']['url']) > 0) {
 		if (strlen($_SESSION['login']['destination']['url']) > 0) {
 			header("Location: ".$_SESSION['login']['destination']['url']);
 			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 {
 		else {
 			require_once "resources/header.php";
 			require_once "resources/header.php";