cvs: smarty / NEWS /libs/plugins modifier.default.php

From: Date: Thu, 10 Apr 2003 20:55:36 +0000
Subject: cvs: smarty / NEWS /libs/plugins modifier.default.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-515@lists.php.net to get a copy of this message
mohrt Thu Apr 10 16:55:36 2003 EDT Modified files: /smarty NEWS /smarty/libs/plugins modifier.default.php Log: fixed bug with default modifier when passing integer 0 Index: smarty/NEWS diff -u smarty/NEWS:1.333 smarty/NEWS:1.334 --- smarty/NEWS:1.333 Fri Apr 4 18:19:02 2003 +++ smarty/NEWS Thu Apr 10 16:55:36 2003 @@ -1,3 +1,5 @@ + - fixed bug with default modifier when passing integer 0 + (Monte) - change backtic syntax from $foo to $foo (Monte) - recognize $foo[][] syntax inside embedded quotes without backtics (Monte) Index: smarty/libs/plugins/modifier.default.php diff -u smarty/libs/plugins/modifier.default.php:1.2 smarty/libs/plugins/modifier.default.php:1.3 --- smarty/libs/plugins/modifier.default.php:1.2 Wed Oct 16 12:26:12 2002 +++ smarty/libs/plugins/modifier.default.php Thu Apr 10 16:55:36 2003 @@ -10,7 +10,7 @@ */ function smarty_modifier_default($string, $default = '') { - if (!isset($string) || $string == '') + if (!isset($string) || $string === '') return $default; else return $string;

« previous php.smarty.cvs (#515) next »