From 32672b74720ae6a440edc2b0d1d7afc71bc9152e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 9 May 2023 17:11:55 -0600 Subject: [PATCH] Update for PHP 8.1 --- resources/header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/header.php b/resources/header.php index 69020a1c3a..46f13eccd7 100644 --- a/resources/header.php +++ b/resources/header.php @@ -34,7 +34,7 @@ //if reloadxml then run the command if (permission_exists('dialplan_edit') && isset($_SESSION["reload_xml"])) { if (!empty($_SESSION["reload_xml"])) { - if ($_SESSION['apply_settings'] == "true") { + if (isset($_SESSION['apply_settings']) && $_SESSION['apply_settings'] == "true") { //show the apply settings prompt } else { @@ -126,7 +126,7 @@ $button_icon_style = 'padding: 3px;'; $button_label_class = 'button-label'; $button_label_style = 'padding-left: 5px; padding-right: 3px;'; - $button_icons = $_SESSION['theme']['button_icons']['text']; + $button_icons = (!empty($_SESSION['theme']['button_icons']['text'])) ? $button_icons = $_SESSION['theme']['button_icons']['text'] : ''; switch ($button_icons) { case 'auto': $button_label_class .= ' hide-md-dn';