From 7b4d11f1f5a95a672fb4d0130aba5de26c18385a Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 25 Feb 2010 19:17:11 +1100 Subject: [PATCH] Addition to Fix template engine rending attributes with multiselect configured --- lib/PageRender.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())) {