From cf32147cc23d37e53f58c4cb7603b6555652c208 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 20 Mar 2013 16:18:53 +0000 Subject: [PATCH] Avoid an error if we try to csv_split() null --- etemplate/js/et2_core_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_core_common.js b/etemplate/js/et2_core_common.js index 936b37d3df..09faf17fd4 100644 --- a/etemplate/js/et2_core_common.js +++ b/etemplate/js/et2_core_common.js @@ -353,7 +353,7 @@ function et2_substr (str, start, len) { function et2_csvSplit(_str, _num, _delimiter, _enclosure) { // Default the parameters - if (typeof _str == "undefined") + if (typeof _str == "undefined" || _str == null) { _str = ""; }