diff --git a/src/NodaWikidataFetcher.php b/src/NodaWikidataFetcher.php index 63a84d8..7aaff7a 100644 --- a/src/NodaWikidataFetcher.php +++ b/src/NodaWikidataFetcher.php @@ -1651,6 +1651,10 @@ final class NodaWikidataFetcher { return []; } + if (empty($wikidata_data['search'])) { + return []; + } + $output = []; foreach ($wikidata_data['search'] as $result) {