diff --git a/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ScheduledSessionController.groovy b/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ScheduledSessionController.groovy index 0234204959..35be51db3e 100644 --- a/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ScheduledSessionController.groovy +++ b/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ScheduledSessionController.groovy @@ -103,8 +103,10 @@ class ScheduledSessionController { def conflict = false + def sched + if (results.size() > 0) { - def sched = results[0] + sched = results[0] if ((scheduledSessionInstance.startDateTime > sched.startDateTime) && (scheduledSessionInstance.startDateTime < sched.endDateTime)) { log.debug "Start time is between start and date time of session ${sched.name}" conflict = true