fixed bug with default modifier when passing integer 0

This commit is contained in:
mohrt
2003-04-10 20:55:36 +00:00
parent b3eac3c997
commit e09d3070a1
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- fixed bug with default modifier when passing integer 0
(Monte)
- change backtic syntax from $`foo` to `$foo` (Monte) - change backtic syntax from $`foo` to `$foo` (Monte)
- recognize $foo[][] syntax inside embedded quotes without - recognize $foo[][] syntax inside embedded quotes without
backtics (Monte) backtics (Monte)

View File

@@ -10,7 +10,7 @@
*/ */
function smarty_modifier_default($string, $default = '') function smarty_modifier_default($string, $default = '')
{ {
if (!isset($string) || $string == '') if (!isset($string) || $string === '')
return $default; return $default;
else else
return $string; return $string;