Re: [SMARTY] default modifier generates notice

From: Date: Tue, 02 Mar 2004 19:01:50 +0000
Subject: Re: [SMARTY] default modifier generates notice
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11043@lists.php.net to get a copy of this message
On Tue, Mar 02, 2004 at 07:13:56PM +0100, messju mohr wrote: > On Tue, Mar 02, 2004 at 05:05:58PM +0200, David Förster wrote: > > Hello, > > > > when I use the default modifier for a simple variable which is not set > > the default value is printed but there's also a warning saying the > > variable is not set. > > > > Is there any way to supress that notice? > > just as in php: lower the error-reporting. I just see the notice is alread silenced with the @-operator. You seem to run a custom error-handler. see http://php.net/manual/en/function.set-error-handler.php : "... - however you are still able to read the current value of error_reporting and act appropriately. Of particular note is that this value will be 0 if the statement that caused the error was prepended by the @ error-control operator. " > > I had a look into the comiled templated but there is only a check if the > > variable is an array. > > > > - david > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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