Add check against empty source ID in references to controlled

vocabularies in wikidata fetcher
This commit is contained in:
Joshua Ramon Enslin 2021-07-06 12:15:31 +02:00
parent af13f747b7
commit fba4706b67
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -697,6 +697,7 @@ final class NodaWikidataFetcher {
foreach ($nodaLinks as $noda_source => $nodaId) {
if ($nodaId === null) continue;
if (!isset(self::URL_PREFIXES_PLACES_NODA_SOURCE[$noda_source])) {
throw new Exception("Unknown noda link: " . $noda_source);
}