]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-batch-json.php
make phpcs happy
[nominatim.git] / lib / template / search-batch-json.php
index 09ea48b63bdbc2a964ac4134de5fcd0d43084dfb..513f3c2b8833a8ea6a20617aa9e961ca47ea6ea2 100644 (file)
@@ -49,7 +49,7 @@ foreach ($aBatchResults as $aSearchResults) {
             $aPlace['icon'] = $aPointDetails['icon'];
         }
 
-        if (isset($aPointDetails['address']) && sizeof($aPointDetails['address'])>0) {
+        if (isset($aPointDetails['address']) && !empty($aPointDetails['address'])) {
             $aPlace['address'] = $aPointDetails['address'];
         }