Commit 4eedd1c5 authored by Raph El's avatar Raph El

Hotfix

parent 33bf30cd
......@@ -4412,7 +4412,13 @@ var directory = {
var color = "text-orange";
if( (moment(agenda.getStartMoment(agenda.dayCount)).isoWeekday() - 1 ) == i ){
if( (moment(agenda.getStartMoment(agenda.dayCount)).isoWeekday() - 1 ) == i
typeof data.hours[i] != "undefined" &&
typeof data.hours[i].opens != "undefined" &&
typeof data.hours[i].closes != "undefined" ) {
color = "text-red";
openHour = data.hours[i].opens;
closesHour = data.hours[i].closes;
......
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