Remove superfluous check for yet undescribed external noda repos
This commit is contained in:
parent
e7f1515227
commit
09a5096588
@ -785,9 +785,11 @@ 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);
|
||||
}
|
||||
*/
|
||||
$noda_link_url = self::URL_PREFIXES_PLACES_NODA_SOURCE[$noda_source] . $nodaId;
|
||||
|
||||
$insertNodaLinkStmt->bind_param("isssssss", $persinst_id, $noda_source, $nodaId, $noda_link_url, $erfasst_von, $nodaId, $noda_link_url, $noda_link_url);
|
||||
@ -1130,9 +1132,11 @@ final class NodaWikidataFetcher {
|
||||
|
||||
foreach ($nodaLinks as $noda_source => $nodaId) {
|
||||
|
||||
/*
|
||||
if (!isset(self::URL_PREFIXES_PLACES_NODA_SOURCE[$noda_source])) {
|
||||
throw new Exception("Unknown noda link: " . $noda_source);
|
||||
}
|
||||
*/
|
||||
$noda_link_url = self::URL_PREFIXES_PLACES_NODA_SOURCE[$noda_source] . $nodaId;
|
||||
|
||||
$insertNodaLinkStmt->bind_param("issssss", $onum, $noda_source, $nodaId, $noda_link_url, $erfasst_von, $nodaId, $noda_link_url);
|
||||
|
Loading…
Reference in New Issue
Block a user