From dab1f156e32da42fa5fd59642f5167d08d6869b6 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 22 May 2020 21:51:49 +0100 Subject: [PATCH] Ensure that organisers are excluded --- src/Collection/EventCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Collection/EventCollection.php b/src/Collection/EventCollection.php index 460d3bb..7a6357d 100644 --- a/src/Collection/EventCollection.php +++ b/src/Collection/EventCollection.php @@ -12,7 +12,7 @@ final class EventCollection extends Collection public function excludeEventHosts(): self { return (new self($this->items))->filter(function (array $rsvp): bool { - return $rsvp['member']['event_context']['host']; + return !$rsvp['member']['event_context']['host']; }); } }