mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fixed bug with default modifier when passing integer 0
This commit is contained in:
2
NEWS
2
NEWS
@@ -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)
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user