* Calendar - avoid hanging in planner if event has an invalid category

This commit is contained in:
nathangray 2018-01-17 16:13:55 -07:00
parent e3ad2ebdf0
commit 4b85df3465

View File

@ -752,11 +752,11 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e
break;
}
}
if(typeof rows[label_index] === 'undefined')
if(label_index && typeof rows[label_index] === 'undefined')
{
rows[label_index] = [];
}
if(rows[label_index].indexOf(event) === -1)
if(label_index && rows[label_index].indexOf(event) === -1)
{
rows[label_index].push(event);
}