fix exception in boetemplate::get_array()

This commit is contained in:
Ralf Becker 2013-11-29 00:20:56 +00:00
parent 4f3f88ae92
commit 4866478242

View File

@ -1073,7 +1073,7 @@ class etemplate_old extends boetemplate
}
$form_name = self::form_name($cname,$name);
if (!is_object($name) && (string)$name !== '')
if (!is_object($name) && (string)$name !== '' && is_array($content))
{
$value = $this->get_array($content,$name);
}