Defaulting 'null' entries in the content-arrays to {}

This commit is contained in:
Andreas Stöckel 2011-09-09 09:28:48 +00:00
parent efca5500d9
commit 65a90eabb8

View File

@ -112,7 +112,7 @@ etemplate2.prototype._createArrayManagers = function(_data)
"validation_errors"];
for (var i = 0; i < neededEntries.length; i++)
{
if (typeof _data[neededEntries[i]] == "undefined")
if (typeof _data[neededEntries[i]] == "undefined" || !_data[neededEntries[i]])
{
et2_debug("log", "Created not passed entry '" + neededEntries[i] +
"' in data array.");