From 09352c56774e56225d0a336c8bd2e6d51144892a Mon Sep 17 00:00:00 2001 From: Adam Olley Date: Fri, 24 Oct 2014 15:34:30 +1030 Subject: [PATCH] MDL-47804 events: calendar_event_updated needs to accept a timestart == 0 --- lib/classes/event/calendar_event_updated.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/event/calendar_event_updated.php b/lib/classes/event/calendar_event_updated.php index fc0b3beb4bd..0a810c297c4 100644 --- a/lib/classes/event/calendar_event_updated.php +++ b/lib/classes/event/calendar_event_updated.php @@ -106,7 +106,7 @@ class calendar_event_updated extends base { if (empty($this->other['name'])) { throw new \coding_exception('The \'name\' value must be set in other.'); } - if (empty($this->other['timestart'])) { + if (!isset($this->other['timestart'])) { throw new \coding_exception('The \'timestart\' value must be set in other.'); } }