diff --git a/src/EventMeta.php b/src/EventMeta.php index c65a4e5..df7e5d2 100644 --- a/src/EventMeta.php +++ b/src/EventMeta.php @@ -148,7 +148,7 @@ public function duplicateRegistrantsAllowed() { */ public function getRegistrationTypeIds() { return array_map(function ($element) { - return $element['target_id']; + return isset($element['target_id']) ? $element['target_id'] : []; }, $this->getEvent()->{EventManagerInterface::FIELD_REGISTRATION_TYPE}->getValue()); }