Compare commits

..

2 Commits

View File

@@ -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);