]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/PlaceLookup.php
Enhanced and refactored 'collect_os_info.py'
[nominatim.git] / lib-php / PlaceLookup.php
index 715f1ced3daab48dbd95b374465f44ff6e93d050..33156537459b87019ba3fe269d1d07a3f58d8032 100644 (file)
@@ -445,7 +445,7 @@ class PlaceLookup
 
             if ($this->bExtraTags) {
                 if ($aPlace['extra']) {
-                    $aPlace['sExtraTags'] = json_decode($aPlace['extra']);
+                    $aPlace['sExtraTags'] = json_decode($aPlace['extra'], true);
                 } else {
                     $aPlace['sExtraTags'] = (object) array();
                 }
@@ -482,7 +482,7 @@ class PlaceLookup
             return (object) array();
         }
 
-        $aFullNames = json_decode($sNames);
+        $aFullNames = json_decode($sNames, true);
         $aNames = array();
 
         foreach ($aFullNames as $sKey => $sValue) {