mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
check correct variable for SQL error
This commit is contained in:
@@ -846,12 +846,12 @@
|
|||||||
$sSQL .= ' ORDER BY ST_distance('.$sPointSQL.', geometry) ASC limit 1';
|
$sSQL .= ' ORDER BY ST_distance('.$sPointSQL.', geometry) ASC limit 1';
|
||||||
//var_dump($sSQL);
|
//var_dump($sSQL);
|
||||||
$aPlace = $oDB->getRow($sSQL);
|
$aPlace = $oDB->getRow($sSQL);
|
||||||
$iPlaceID = $aPlace['place_id'];
|
if (PEAR::IsError($aPlace))
|
||||||
if (PEAR::IsError($iPlaceID))
|
|
||||||
{
|
{
|
||||||
var_Dump($sSQL, $iPlaceID);
|
var_Dump($sSQL, $aPlace);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
$iPlaceID = $aPlace['place_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
// The point we found might be too small - use the address to find what it is a child of
|
// The point we found might be too small - use the address to find what it is a child of
|
||||||
|
|||||||
Reference in New Issue
Block a user