forked from extern/egroupware
Consider "0" (string zero) equal to false instead of true, as some PHP values come as strings.
This commit is contained in:
parent
0a1c0e5135
commit
fa8963c8b4
@ -52,7 +52,7 @@ function et2_evalBool(_val)
|
||||
{
|
||||
if (typeof _val == "string")
|
||||
{
|
||||
if (_val == "false")
|
||||
if (_val == "false" || _val == "0")
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user