Add fix for empty noda references in fetching tags from Wikidata

This commit is contained in:
Joshua Ramon Enslin 2021-04-24 01:13:27 +02:00
parent e1a9a99797
commit 9157e8a0f1
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -1234,6 +1234,8 @@ final class NodaWikidataFetcher {
throw new Exception("Unknown URL prefix for: " . $vocabName);
}
if (empty($nodaId)) continue;
$noda_link = self::URL_PREFIXES_PLACES_NODA_SOURCE[$vocabName] . $nodaId;
$insertNodaTagStmt->bind_param("isssssss", $tag_id, $vocabName, $nodaId, $noda_link, $erfasst_von, $nodaId, $noda_link, $erfasst_von);