Fix unpacking undefined in listing gen

dev
gravel 6 months ago
parent 1782a9a69c
commit b7aad9d40c
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -89,7 +89,7 @@
$listings = [];
foreach ($listings_raw as $id => $listing_props) {
$filter = [...$listing_props['rooms'], ...$listing_props['sogs']];
$filter = [...($listing_props['rooms'] ?? []), ...($listing_props['sogs'] ?? [])];
$matchees = [];
$rooms = CommunityRoom::select_rooms($rooms_all, $filter, $matchees);

Loading…
Cancel
Save