Better check on global_data type before using it

This commit is contained in:
Nathan Gray 2013-02-08 12:22:19 +00:00
parent b42e913478
commit 834832b87e

View File

@ -100,7 +100,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], {
}
}
var global_data = this.getArrayMgr("modifications").getRoot().getEntry('~custom_fields~');
if(typeof global_data !== 'undefined')
if(typeof global_data == 'object')
{
global_data.fields = cfs;
}