Compare commits
2 Commits
ef43270fb2
...
39362f537a
Author | SHA1 | Date | |
---|---|---|---|
39362f537a | |||
de0357473a |
@ -745,7 +745,7 @@ final class NodaWikidataFetcher {
|
||||
$languagesToFetch = $wikilinks = [];
|
||||
foreach ($checkagainstLanguage as $lang) {
|
||||
|
||||
if (empty($data['labels'][$lang])) {
|
||||
if (empty($data['labels']) || empty($data['labels'][$lang])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ require_once __DIR__ . '/../../MDMysqli/test_connections.conf.php';
|
||||
final class NodaWikidataFetcherTest extends TestCase {
|
||||
|
||||
// Test for getting translations: Telugu
|
||||
private const TEST_LANG = 'te';
|
||||
public const TEST_LANG = 'te';
|
||||
|
||||
/**
|
||||
* Test to check whether the HTML page is correctly generated.
|
||||
|
Loading…
x
Reference in New Issue
Block a user