Re: Warning: Illegal offset type in

From: Date: Mon, 25 Mar 2002 14:26:40 +0000
Subject: Re: Warning: Illegal offset type in
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3322@lists.php.net to get a copy of this message
What version of Smarty are you using? Seems to be an old one. On Sat, 23 Mar 2002, Joe Rice wrote: > > 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 > > --- > You are currently subscribed to smarty as: andrei@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -Andrei * If it ain't broken, it doesn't have enough features yet. *

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