Commit c68230d7 authored by Henning Leutz's avatar Henning Leutz 🥋

fix: json_decode() expects parameter 1 to be string, array given

parent 4e6e7a1d
......@@ -258,9 +258,12 @@ class Brick extends QUI\QDOM
}
$oldCssClasses = $this->getAttribute('classes');
$oldCssClasses = $this->getAttribute('classes');
$oldCssClassesJson = null;
$oldCssClassesJson = \json_decode($oldCssClasses, true);
if (\is_string($oldCssClasses)) {
$oldCssClassesJson = \json_decode($oldCssClasses, true);
}
if (\is_array($oldCssClassesJson)) {
$oldCssClasses = $oldCssClassesJson;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment