Re: [SMARTY-DEV] Re: 'default'-modifier causes a php-notice

From: Date: Sat, 15 Mar 2003 18:27:41 +0000
Subject: Re: [SMARTY-DEV] Re: 'default'-modifier causes a php-notice
References: 1 2 3  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-955@lists.php.net to get a copy of this message
Try CVS, see if that patch works. I applied a "@" to the _run_mod_handler() call. On Sat, 2003-03-15 at 10:17, Tom Sommer wrote: > On Wed, 12 Mar 2003 22:52:48 +0100, Messju Mohr wrote: > > > > i don't know if smarty proclaims to be notice-free in all circumstances. > > > if so, another possible solution would be to make "default" a fully > > internal modifier or to make all modifier-calls silent by prepending > > an @ before the method call. > > Havning the same problem, and feel that here it SHOULD be notice-free... > the @ operator doesn't work either.... > > > {@$header|default:"no title"} > syntax error: unrecognized tag: @$header|default:"no title" > > @ is generally very broken... and a bad way to solve notices... > > > -- > Tom Sommer, denmark > www.tsn.dk - www.dreamcoder.dk -- Monte Ohrt <monte@ispi.net>

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