forked from extern/egroupware
Avoid an error if we try to csv_split() null
This commit is contained in:
parent
fee50cec99
commit
cf32147cc2
@ -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 = "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user