Consider "0" (string zero) equal to false instead of true, as some PHP values come as strings.

This commit is contained in:
Nathan Gray 2014-06-09 19:27:02 +00:00
parent 0a1c0e5135
commit fa8963c8b4

View File

@ -52,7 +52,7 @@ function et2_evalBool(_val)
{ {
if (typeof _val == "string") if (typeof _val == "string")
{ {
if (_val == "false") if (_val == "false" || _val == "0")
{ {
return false; return false;
} }