From 14e82826aec8c673dca5c729403eaba46254c844 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Mon, 5 Oct 2020 12:05:48 +0200 Subject: [PATCH] Fix bug in getting place IDs by noda links --- src/NodaIDGetter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NodaIDGetter.php b/src/NodaIDGetter.php index 6101702..fce7f91 100644 --- a/src/NodaIDGetter.php +++ b/src/NodaIDGetter.php @@ -150,7 +150,7 @@ final class NodaIDGetter { */ public static function getPlaceIDByNodaLink(MDMysqli $mysqli_noda, string $noda_source, string $noda_nrinsource):int { - if (empty($name)) return 0; + if (empty($noda_nrinsource)) return 0; $placeByNodaResult = $mysqli_noda->query_by_stmt(" SELECT `ort_id`