Commit 9b79aa9f authored by Raph El's avatar Raph El

Hotfix

parent adcd438e
......@@ -4420,7 +4420,9 @@ var directory = {
var color = "text-orange";
if( (moment(agenda.getStartMoment(agenda.dayCount)).isoWeekday() - 1 ) == i &&
if( typeof agenda != "undefined" &&
agenda != null &&
(moment(agenda.getStartMoment(agenda.dayCount)).isoWeekday() - 1 ) == i &&
typeof data.hours[i] != "undefined" &&
typeof data.hours[i].opens != "undefined" &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment