From: Sarah Hoffmann Date: Sat, 30 Sep 2017 10:24:37 +0000 (+0200) Subject: skip output of lat/lon in debug when no near point given X-Git-Tag: v3.1.0~71 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/f2c15b73ad106e263b13bdfbd9eea28c7721d1a0 skip output of lat/lon in debug when no near point given --- diff --git a/lib/lib.php b/lib/lib.php index a5439ef2..fb89c48b 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -545,8 +545,12 @@ function _debugDumpGroupedSearches($aData, $aTokens) echo "".$aRow['sPostcode'].""; echo "".$aRow['sHouseNumber'].""; - echo "".$aRow['oNear']->lat().""; - echo "".$aRow['oNear']->lon().""; + if ($aRow['oNear']) { + echo "".$aRow['oNear']->lat().""; + echo "".$aRow['oNear']->lon().""; + } else { + echo ""; + } echo "".$aRow['fRadius'].""; echo "";