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:49:46 +00:00
parent e4e3627cdc
commit 04a066154e

View File

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