From 1aa7ae720996d31d574d6a43896dbb09610760ac Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Tue, 17 Dec 2019 20:00:03 -0700 Subject: [PATCH] Update template.php (#4957) --- themes/default/template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/default/template.php b/themes/default/template.php index 20b512c1e7..43b2e8a6dc 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -662,7 +662,7 @@ if (!$default_login) { $menu_brand_image = ($_SESSION['theme']['menu_brand_image']['text'] != '') ? escape($_SESSION['theme']['menu_brand_image']['text']) : PROJECT_PATH."/themes/default/images/logo.png"; echo " "; echo " "; - if ($_SESSION['theme']['menu_brand_image_hover']['text'] != '') { + if (isset($_SESSION['theme']['menu_brand_image_hover']['text']) && $_SESSION['theme']['menu_brand_image_hover']['text'] != '') { echo ""; } echo "\n"; @@ -690,7 +690,7 @@ if (!$default_login) { } $mod_a_2 = ($menu_parent['menu_item_link'] != '' && !$submenu) ? $menu_parent['menu_item_link'] : '#'; $mod_a_3 = ($menu_parent['menu_item_category'] == 'external') ? "target='_blank' " : null; - if ($_SESSION['theme']['menu_main_icons']['boolean'] != 'false') { + if (isset($_SESSION['theme']['menu_main_icons']['boolean']) && $_SESSION['theme']['menu_main_icons']['boolean'] != 'false') { if ($menu_parent['menu_item_icon'] != '' && substr_count($menu_parent['menu_item_icon'], 'fa-') > 0) { $menu_main_icon = "\n"; } @@ -895,7 +895,7 @@ if (!$default_login) { echo " \n"; echo "\n"; echo "\n"; echo "\n"; //initial div from switch statement above