Warning: Illegal offset type in

From: Date: Sun, 24 Mar 2002 05:15:38 +0000
Subject: Warning: Illegal offset type in
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3311@lists.php.net to get a copy of this message
hi, I'm getting this warning while trying to use {section} to loop over an array. Warning: Illegal offset type in templates_c/searchresults.tpl.php on line 34 Warning: Illegal offset type in templates_c/searchresults.tpl.php on line 35 Warning: Illegal offset type in templates_c/searchresults.tpl.php on line 36 Warning: Illegal offset type in templates_c/searchresults.tpl.php on line 37 Warning: Illegal offset type in templates_c/searchresults.tpl.php on line 38 Warning: Illegal offset type in templates_c/searchresults.tpl.php on line 39 . . . . those lines look like: <?php if (isset($this->_sections[$this->_tpl_vars['RESULTS']])) unset($this->_sections[$this->_tpl_vars['RESULTS']]); $this->_sections[$this->_tpl_vars['RESULTS']]['properties']['loop'] = is_array("r") ? count("r") : max(0, (int)"r"); $this->_sections[$this->_tpl_vars['RESULTS']]['properties']['name'] = $this->_tpl_vars['RESULTS']; $this->_sections[$this->_tpl_vars['RESULTS']]['properties']['show'] = true; $this->_sections[$this->_tpl_vars['RESULTS']]['properties']['max'] = $this->_sections[$this->_tpl_vars['RESULTS']]['properties']['loop']; $this->_sections[$this->_tpl_vars['RESULTS']]['properties']['step'] = 1; any help would be appreciated. thanks, joe

« previous php.smarty.general (#3311) next »