From 04a066154e20fbbe4c869dab4625f1ec0c85cdf3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 31 Oct 2013 08:49:46 +0000 Subject: [PATCH] fixing PHP fatal error: "Object of class etemplate could not be converted to string", caused by last commit --- etemplate/inc/class.etemplate_old.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_old.inc.php b/etemplate/inc/class.etemplate_old.inc.php index 2a2d8d12ae..4144876f41 100644 --- a/etemplate/inc/class.etemplate_old.inc.php +++ b/etemplate/inc/class.etemplate_old.inc.php @@ -1059,7 +1059,7 @@ class etemplate_old extends boetemplate } $form_name = self::form_name($cname,$name); - if ((string)$name !== '') + if (!is_object($name) && (string)$name !== '') { $value = $this->get_array($content,$name); }