Addition to Fix template engine rending attributes with multiselect configured

This commit is contained in:
Deon George 2010-02-25 19:17:11 +11:00
parent a1c714bdb8
commit 7b4d11f1f5

View File

@ -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())) {