From f04981e301df393e6fd706acc550e40e96bbd389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joe=CC=88l=20Pittet?= Date: Thu, 22 Nov 2018 09:53:26 -0800 Subject: [PATCH] Fix #181 --- src/EventMeta.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }