RE: [SMARTY] wrong error message for eval

From: Date: Sat, 29 Jun 2002 20:28:13 +0000
Subject: RE: [SMARTY] wrong error message for eval
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5102@lists.php.net to get a copy of this message
A suggestion for the eval function ;) - if the var parameter is set, but empty, don't have it display an error. Sometimes I have empty strings that get passed to it. Current workaround is: {eval var=$foo|default:" "} Gerard > -----Original Message----- > From: Monte Ohrt [mailto:monte@ispi.net] > Sent: Saturday, June 29, 2002 10:00 AM > To: Jens Lehmann > Cc: smarty-general@lists.php.net > Subject: Re: [SMARTY] wrong error message for eval > > > Thanks for the info. Alas, I don't have time to sift through code doing > quality control on error messages, but I do fix problems that get > reported. > > Monte > > Jens Lehmann wrote: > > >There is a mistake in funtion.eval.php. The error message > >should be "eval: missing 'var' parameter". > >Please check other functions for the appropriate error messages, > >because this is not the first time I found this kind of bug. > > > >By the way the error is triggered if there is no var-parameter > >or if this parameter is empty. I don't know if this is the > >wanted behaviour, because it could be confusing. > > > >Jens > > > > > > > > > > > > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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