MDL-47174 events: new calendar event may have 0 timestart

This commit is contained in:
Marina Glancy
2014-11-06 08:57:29 +08:00
parent 6ce4b8ea30
commit 8f94164df3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ class calendar_event_created 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.');
}
}
+1 -1
View File
@@ -88,7 +88,7 @@ class calendar_event_deleted 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.');
}
}