]> git.openstreetmap.org Git - nominatim.git/commitdiff
skip output of lat/lon in debug when no near point given
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 30 Sep 2017 10:24:37 +0000 (12:24 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 30 Sep 2017 10:24:37 +0000 (12:24 +0200)
lib/lib.php

index a5439ef25a9dd39fd41ed2a843e9bbb45b4fa1dc..fb89c48bfe433d12ab7f3db936dee15758927ace 100644 (file)
@@ -545,8 +545,12 @@ function _debugDumpGroupedSearches($aData, $aTokens)
             echo "<td>".$aRow['sPostcode']."</td>";
             echo "<td>".$aRow['sHouseNumber']."</td>";
 
-            echo "<td>".$aRow['oNear']->lat()."</td>";
-            echo "<td>".$aRow['oNear']->lon()."</td>";
+            if ($aRow['oNear']) {
+                echo "<td>".$aRow['oNear']->lat()."</td>";
+                echo "<td>".$aRow['oNear']->lon()."</td>";
+            } else {
+                echo "<td></td><td></td>";
+            }
             echo "<td>".$aRow['fRadius']."</td>";
 
             echo "</tr>";