From ab2bd0ef5e9b55b0c286f36cefd6d488f70ea38b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 13 May 2023 17:20:17 -0600 Subject: [PATCH] Update footer.php use the empty function --- resources/footer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/footer.php b/resources/footer.php index 10f45e9926..17ada29e97 100644 --- a/resources/footer.php +++ b/resources/footer.php @@ -167,7 +167,7 @@ else if (isset($_SESSION['software_name'])) { $document_title = $_SESSION['software_name']; } - $document_title = ($document['title'] != '' ? $document['title'].' - ' : null).$document_title; + $document_title = (!empty($document['title']) ? $document['title'].' - ' : null).$document_title; $view->assign('document_title', $document_title); //domain selector control $domain_selector_enabled = permission_exists('domain_select') && count($_SESSION['domains']) > 1 ? true : false; @@ -178,7 +178,7 @@ $view->assign('browser_name', $user_agent['name']); $view->assign('browser_name_short', $user_agent['name_short']); //login state - $authenticated = isset($_SESSION['username']) && $_SESSION['username'] != '' ? true : false; + $authenticated = isset($_SESSION['username']) && !empty($_SESSION['username']) ? true : false; $view->assign('authenticated', $authenticated); //domains application path $view->assign('domains_app_path', PROJECT_PATH.(file_exists($_SERVER['DOCUMENT_ROOT'].'/app/domains/domains.php') ? '/app/domains/domains.php' : '/core/domains/domains.php'));