Re: [SMARTY] Bring back E_ALL!

From: Date: Mon, 15 Apr 2002 18:08:47 +0000
Subject: Re: [SMARTY] Bring back E_ALL!
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3742@lists.php.net to get a copy of this message
> To suppress warnings, I use : > > {if isset($var)} > {$var} > {/if} That's ugly, brrr... Set error_reporting(E_ALL ^ E_NOTICE) in a subclass of Smarty. That's much more convinient. > I understand that the warning is strange in case of : > {$var|default:"blah blah"} > > But you may want to try isset() The definition of default is that if it is not set or if it is empty, then it uses the default value... Goba

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