diff --git a/src/NodaWikidataFetcher.php b/src/NodaWikidataFetcher.php index f3ef93e..89f9258 100644 --- a/src/NodaWikidataFetcher.php +++ b/src/NodaWikidataFetcher.php @@ -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);