Skip to content

Commit 21462cc

Browse files
authored
GBZ3-237 Fix array checking _kalatheme_get_styles
1 parent 1eaf867 commit 21462cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

styles/kalacustomize/kalacustomize.inc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,15 @@ function kalatheme_kalacustomize_pane_settings_form($style_settings) {
130130
* Array with prefix and suffix keys.
131131
*/
132132
function _kalatheme_get_styles($styles = array()) {
133-
if (isset($styles)) {
133+
if (isset($styles) && is_array($styles)) {
134134
foreach ($styles as $key => $class) {
135135
if ($class === 0) {
136136
unset($styles[$key]);
137137
}
138138
}
139-
return $styles ? ' ' . implode(' ', $styles) : '';
139+
return $styles ? ' ' . implode(' ', $styles) : '';
140140
}
141+
return '';
141142
}
142143

143144
/**

0 commit comments

Comments
 (0)