Accept empty extract data from Wikidata
This commit is contained in:
@@ -138,7 +138,7 @@ final class NodaWikidataFetcher {
|
||||
return '';
|
||||
}
|
||||
$firstPageId = array_keys($json_decoded['query']['pages'])[0];
|
||||
$datafromwiki = strval($json_decoded['query']['pages'][$firstPageId]['extract']);
|
||||
$datafromwiki = strval($json_decoded['query']['pages'][$firstPageId]['extract'] ?? "");
|
||||
|
||||
return self::_cleanInputSimple($datafromwiki);
|
||||
|
||||
|
Reference in New Issue
Block a user