]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-json.php
use RFC3339 for human readable date
[nominatim.git] / lib / template / search-json.php
index 774b5be08b3e6bca7db863ab6584542986416cbc..7c87f6366ceb8876b492250c29b24c6dfa916e28 100644 (file)
@@ -43,7 +43,7 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) {
         $aPlace['icon'] = $aPointDetails['icon'];
     }
 
-    if (isset($aPointDetails['address']) && sizeof($aPointDetails['address'])) {
+    if (isset($aPointDetails['address']) && !empty($aPointDetails['address'])) {
         $aPlace['address'] = $aPointDetails['address'];
     }