Compare commits

...

1 Commits

Author SHA1 Message Date
Cedric Verstraeten
3341e99af1 timetable might be empty 2023-06-13 09:22:51 +02:00

View File

@@ -139,7 +139,7 @@ func ProcessMotion(motionCursor *pubsub.QueueCursor, configuration *models.Confi
hour := now.Hour()
minute := now.Minute()
second := now.Second()
if config.Timetable != nil {
if config.Timetable != nil && len(config.Timetable) > 0 {
timeInterval := config.Timetable[int(weekday)]
if timeInterval != nil {
start1 := timeInterval.Start1