Merge branch 'wip-MDL-47174-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user