]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/template/details-json.php
remove default parameter for namedtuple
[nominatim.git] / 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();
     }
 }