X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1ccf4fb92fe71e9e2bc0baabfb2e92cd79166dae..f822b04dbe7caf9794b4f206fd8b75ad0ceafd15:/lib/lib.php?ds=sidebyside diff --git a/lib/lib.php b/lib/lib.php index e569aa8b..482e9598 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -852,12 +852,12 @@ $sSQL .= ' ORDER BY ST_distance('.$sPointSQL.', geometry) ASC limit 1'; //var_dump($sSQL); $aPlace = $oDB->getRow($sSQL); - $iPlaceID = $aPlace['place_id']; - if (PEAR::IsError($iPlaceID)) + if (PEAR::IsError($aPlace)) { - var_Dump($sSQL, $iPlaceID); + var_Dump($sSQL, $aPlace); exit; } + $iPlaceID = $aPlace['place_id']; } // The point we found might be too small - use the address to find what it is a child of