Skip to content

Commit

Permalink
UHF-9695: Fix ID checking when fetching locations.
Browse files Browse the repository at this point in the history
  • Loading branch information
juho-lehmonen committed Feb 29, 2024
1 parent 796dd89 commit 8587158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/helfi_react_search/src/LinkedEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function getPlacesList(string $event_url) : array {
do {
foreach ($data as $item) {
// Bail if no location data.
if (!isset($item->location) || !isset($item->location->id)) {
if (!isset($item->id) || !isset($item->name)) {
continue;
}

Expand Down

0 comments on commit 8587158

Please sign in to comment.