Events with no date are not returned

GH-160
This commit is contained in:
Oliver Davies 2019-12-27 15:08:01 +00:00
parent 1c3d7f820f
commit 2133af2a4a
2 changed files with 28 additions and 0 deletions

View file

@ -99,6 +99,8 @@ class TalksExtension extends AbstractExtension
{
return (new Collection($talks))->flatMap(function ($talk): array {
return $talk['events'];
})->filter(function ($event): bool {
return !empty($event['date']);
});
}
}