mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 14:41:50 +01:00
Handle if string to be parsed is missing too
This commit is contained in:
parent
3d66a8d948
commit
9ea341151f
@ -487,6 +487,10 @@ function et2_substr (str, start, len) {
|
|||||||
function et2_csvSplit(_str, _num, _delimiter, _enclosure)
|
function et2_csvSplit(_str, _num, _delimiter, _enclosure)
|
||||||
{
|
{
|
||||||
// Default the parameters
|
// Default the parameters
|
||||||
|
if (typeof _str == "undefined")
|
||||||
|
{
|
||||||
|
_str = "";
|
||||||
|
}
|
||||||
if (typeof _num == "undefined")
|
if (typeof _num == "undefined")
|
||||||
{
|
{
|
||||||
_num = null;
|
_num = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user