|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
niekas Smarty Rookie
Joined: 30 Jan 2004 Posts: 10
|
Posted: Fri Jan 30, 2004 5:43 am Post subject: concerning "default" modifier |
|
|
i'm not sure if its a bug, but it no longer works as before
current version we evaluating:
if (!isset($string) || $string === '')
and if variable is a zero its not considered empty
in smarty v2 it was like this
if (empty($string)) |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Fri Jan 30, 2004 8:08 am Post subject: |
|
|
the cvs log-entry to the change is:
Code: |
----------------------------
revision 1.3
date: 2003/04/10 20:55:36; author: mohrt; state: Exp; lines: +1 -1
fixed bug with default modifier when passing integer 0
----------------------------
|
it looks the change is intended and not a bug. |
|
Back to top |
|
niekas Smarty Rookie
Joined: 30 Jan 2004 Posts: 10
|
Posted: Sat Jan 31, 2004 6:29 am Post subject: |
|
|
messju wrote: | the cvs log-entry to the change is:
Code: |
----------------------------
revision 1.3
date: 2003/04/10 20:55:36; author: mohrt; state: Exp; lines: +1 -1
fixed bug with default modifier when passing integer 0
----------------------------
|
it looks the change is intended and not a bug. |
oh well i changed it back for myself
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|