From 08ee1d0cd613ac233438b47d4931cc6ba72f5d29 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 1 Aug 2021 17:14:38 -0600 Subject: [PATCH] Update check_auth.php --- resources/check_auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/check_auth.php b/resources/check_auth.php index 7dfe03b66b..55ba3631f1 100644 --- a/resources/check_auth.php +++ b/resources/check_auth.php @@ -296,7 +296,7 @@ } //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']); } elseif (file_exists($_SERVER["PROJECT_ROOT"]."/core/user_settings/user_dashboard.php")) { header("Location: ".PROJECT_PATH."/core/user_settings/user_dashboard.php");