Parse null values as string '' instead of 'null' to match PHP

This commit is contained in:
Nathan Gray 2013-12-12 20:10:02 +00:00
parent 0d3a7b73cf
commit 39c53c5530

View File

@ -329,7 +329,7 @@
"]";
}
return '(typeof _'+_variable.variable+' != "undefined" && typeof '+result + '!="undefined" ? ' + result + ':"")';
return '(typeof _'+_variable.variable+' != "undefined" && typeof '+result + '!="undefined" && ' + result + ' != null ? ' + result + ':"")';
}
_throwCompilerErr("Variable $" + _variable.variable + " is not defined.");