From 76ac8d4381888e0d753e929d5bd937298bedb0f2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 7 Nov 2006 14:22:49 +0000 Subject: [PATCH] php5.2 fix: Catchable fatal error: Object of class etemplate could not be converted to string --- etemplate/inc/class.boetemplate.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etemplate/inc/class.boetemplate.inc.php b/etemplate/inc/class.boetemplate.inc.php index a3b0a660be..64af516feb 100644 --- a/etemplate/inc/class.boetemplate.inc.php +++ b/etemplate/inc/class.boetemplate.inc.php @@ -627,6 +627,8 @@ { die('set_array() $arr is no array
'.function_backtrace()); } + if (is_object($idx)) return false; // given an error in php5.2 + $idxs = explode('[',str_replace(']','',$idx)); $pos = &$arr; foreach($idxs as $idx)