mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-58432 core_calendar: allow event properties to be null
Part of MDL-55611 epic.
This commit is contained in:
parent
e1cd93ce20
commit
2a8e41b990
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ class calendar_event {
|
|||
if (method_exists($this, 'get_'.$key)) {
|
||||
return $this->{'get_'.$key}();
|
||||
}
|
||||
if (!isset($this->properties->{$key})) {
|
||||
if (!property_exists($this->properties, $key)) {
|
||||
throw new \coding_exception('Undefined property requested');
|
||||
}
|
||||
return $this->properties->{$key};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue