]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge pull request #2321 from AntoJvlt/csv-import-special-phrases
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 18 May 2021 20:58:25 +0000 (22:58 +0200)
committerGitHub <noreply@github.com>
Tue, 18 May 2021 20:58:25 +0000 (22:58 +0200)
CSV import for special phrases and loader refactoring

lib-php/template/details-json.php

index 0449dbb94f20916c26b1f68562e0ea185d7d3807..a813b9a6524efc4e912c71ecc07a7f2884c925f5 100644 (file)
@@ -81,10 +81,14 @@ if ($bIncludeKeywords) {
 
     if ($aPlaceSearchNameKeywords) {
         $aPlaceDetails['keywords']['name'] = array_map($funcMapKeyword, $aPlaceSearchNameKeywords);
+    } else {
+        $aPlaceDetails['keywords']['name'] = array();
     }
 
     if ($aPlaceSearchAddressKeywords) {
         $aPlaceDetails['keywords']['address'] = array_map($funcMapKeyword, $aPlaceSearchAddressKeywords);
+    } else {
+        $aPlaceDetails['keywords']['address'] = array();
     }
 }