diff --git a/resources/classes/button.php b/resources/classes/button.php index f1e401a25a..d7c73aedb8 100644 --- a/resources/classes/button.php +++ b/resources/classes/button.php @@ -32,6 +32,18 @@ if (!class_exists('button')) { static function create($array) { $button_icons = $_SESSION['theme']['button_icons']['text'] != '' ? $_SESSION['theme']['button_icons']['text'] : 'auto'; + //parse styles into array + if ($array['style']) { + $tmp = explode(';',$array['style']); + foreach ($tmp as $style) { + if ($style) { + $style = explode(':', $style); + $styles[trim($style[0])] = trim($style[1]); + } + } + $array['style'] = $styles; + unset($styles); + } //button: open $button = "