X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a796edb9ced6d46c7edf9a8a7d1ccad3564da004..819b858ba70fa01484ec8547f3f34b654aa4181c:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index b7564c7f..cdd6b5cb 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -545,9 +545,13 @@ function _debugDumpGroupedSearches($aData, $aTokens) echo "".$aRow['sPostcode'].""; echo "".$aRow['sHouseNumber'].""; - echo "".$aRow['oNear']->lat().""; - echo "".$aRow['oNear']->lon().""; - echo "".$aRow['fRadius'].""; + if ($aRow['oNear']) { + echo "".$aRow['oNear']->lat().""; + echo "".$aRow['oNear']->lon().""; + echo "".$aRow['oNear']->radius().""; + } else { + echo ""; + } echo ""; }