Events with no date are not returned
GH-160
This commit is contained in:
parent
1c3d7f820f
commit
2133af2a4a
2 changed files with 28 additions and 0 deletions
|
@ -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']);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue