do not pass null to object methods

From: Date: Mon, 27 Jun 2005 15:26:13 +0000
Subject: do not pass null to object methods
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2728@lists.php.net to get a copy of this message
when i do not enter any arguments, smarty passes null as argument, which breaks my method's default argument values. eg. function foobar($foo = 'defaultvalue') doesnt work anymore. This is a small patch to stop smarty from passing null as argument. -- ________________________________ MfG Arpad Borsos aka "Swatinem" http://localhost.renegade-planet.de ________________________________ Reclaim Your Inbox! - Mozilla Thunderbird http://www.mozilla.org/products/thunderbird/ Take Back the Web! - Mozilla Firefox http://www.mozilla.org/products/firefox/ ________________________________

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