From 89af27e94e742752bc19f8d40f76e14b72a38e30 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 8 May 2023 23:03:00 -0600 Subject: [PATCH] Update button.php --- resources/classes/button.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/resources/classes/button.php b/resources/classes/button.php index c10ee3c017..0c73002d33 100644 --- a/resources/classes/button.php +++ b/resources/classes/button.php @@ -31,9 +31,9 @@ if (!class_exists('button')) { public static $collapse = 'hide-md-dn'; static function create($array) { - $button_icons = $_SESSION['theme']['button_icons']['text'] != '' ? $_SESSION['theme']['button_icons']['text'] : 'auto'; + $button_icons = !empty($_SESSION['theme']['button_icons']['text']) ? $_SESSION['theme']['button_icons']['text'] : 'auto'; //parse styles into array - if ($array['style']) { + if (!empty($array['style'])) { $tmp = explode(';',$array['style']); foreach ($tmp as $style) { if ($style) { @@ -47,18 +47,18 @@ if (!class_exists('button')) { //button: open $button = "