php5.2 fix: Catchable fatal error: Object of class etemplate could not be converted to string

This commit is contained in:
Ralf Becker 2006-11-07 14:22:49 +00:00
parent a747ced726
commit 76ac8d4381

View File

@ -627,6 +627,8 @@
{
die('set_array() $arr is no array<br>'.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)