Skip to content

Commit

Permalink
Fix dpi#181
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpittet committed Nov 22, 2018
1 parent 8ed25c0 commit f04981e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit f04981e

Please sign in to comment.