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 = "