MDL-47804 events: calendar_event_updated needs to accept a timestart == 0

This commit is contained in:
Adam Olley
2014-10-24 15:35:14 +10:30
parent 3eeb53655e
commit 09352c5677
+1 -1
View File
@@ -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.');
}
}