Update footer.php use the empty function

This commit is contained in:
FusionPBX 2023-05-13 17:20:17 -06:00 committed by GitHub
parent 01c3ed5c48
commit ab2bd0ef5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@
else if (isset($_SESSION['software_name'])) { else if (isset($_SESSION['software_name'])) {
$document_title = $_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); $view->assign('document_title', $document_title);
//domain selector control //domain selector control
$domain_selector_enabled = permission_exists('domain_select') && count($_SESSION['domains']) > 1 ? true : false; $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', $user_agent['name']);
$view->assign('browser_name_short', $user_agent['name_short']); $view->assign('browser_name_short', $user_agent['name_short']);
//login state //login state
$authenticated = isset($_SESSION['username']) && $_SESSION['username'] != '' ? true : false; $authenticated = isset($_SESSION['username']) && !empty($_SESSION['username']) ? true : false;
$view->assign('authenticated', $authenticated); $view->assign('authenticated', $authenticated);
//domains application path //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')); $view->assign('domains_app_path', PROJECT_PATH.(file_exists($_SERVER['DOCUMENT_ROOT'].'/app/domains/domains.php') ? '/app/domains/domains.php' : '/core/domains/domains.php'));