Compare commits
2 Commits
579404d498
...
58d795c806
Author | SHA1 | Date | |
---|---|---|---|
58d795c806 | |||
db0aa0671b
|
@@ -138,7 +138,7 @@ final class NodaWikidataFetcher {
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
$firstPageId = array_keys($json_decoded['query']['pages'])[0];
|
$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);
|
return self::_cleanInputSimple($datafromwiki);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user