Append broken?

From: Date: Fri, 12 Jul 2002 09:12:44 +0000
Subject: Append broken?
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-181@lists.php.net to get a copy of this message
Hello, I think the append function is broken in the new version of Smarty I did get this error: Fatal error: [] operator not supported for strings in /php-include/Smarty-2.2.0/Smarty.class.php on line 255 function append($tpl_var, $value = NULL) { if (is_array($tpl_var)) { foreach ($tpl_var as $key => $val) { if (!empty($key)) { (array)$this->_tpl_vars[$key][] = $val; } } } else { if (!empty($tpl_var) && isset($value)) { ==> (array)$this->_tpl_vars[$tpl_var][] = $value; } } $this->_extract = true; } Greetings, Jan Rosier * Cynic: Someone who knows the price of everything and the value of nothing. *

« previous php.smarty.dev (#181) next »