From 834832b87e2a9d009572c8324e13746260297ef2 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 8 Feb 2013 12:22:19 +0000 Subject: [PATCH] Better check on global_data type before using it --- etemplate/js/et2_extension_nextmatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index ddc81bb1f9..52fd472b5d 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -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; }