diff --git a/lib/PageRender.php b/lib/PageRender.php index eab1fe9..fe63abd 100644 --- a/lib/PageRender.php +++ b/lib/PageRender.php @@ -1011,7 +1011,7 @@ class PageRender extends Visitor { $vals = $attribute->getValues(); $j = 0; - if (! $vals && ! is_array($vals = $attribute->getDefault())) + if (! $vals && ! is_null($attribute->getDefault()) && ! is_array($vals = $attribute->getDefault())) $vals = array($attribute->getDefault()); if (($attribute->getSize() > 0) && ($attribute->getSize() < $attribute->getOptionCount())) {