Code Comments
Programming Forum and web based access to our favorite programming groups.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 had a look into the comiled templated but there is only a check if the > variable is an array. > > - david
Post Follow-up to this messageOn 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: > > 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. " > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.