fixing PHP fatal error: "Object of class etemplate could not be converted to string", caused by last commit

This commit is contained in:
Ralf Becker 2013-10-31 08:46:28 +00:00
parent aff5641761
commit eca96a4411

View File

@ -1081,8 +1081,7 @@ class etemplate extends boetemplate
list($name) = explode('=',$name);
}
$form_name = self::form_name($cname,$name);
if ((string)$name !== '')
if (!is_object($name) && (string)$name !== '')
{
$value = $this->get_array($content,$name);
}