mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
check database results before using variable
This commit is contained in:
@@ -51,6 +51,10 @@
|
|||||||
$sSQL .= " from placex where place_id = ".(int)$this->iPlaceID;
|
$sSQL .= " from placex where place_id = ".(int)$this->iPlaceID;
|
||||||
$aPlace = $this->oDB->getRow($sSQL);
|
$aPlace = $this->oDB->getRow($sSQL);
|
||||||
|
|
||||||
|
if (PEAR::IsError($aPlace))
|
||||||
|
{
|
||||||
|
failInternalError("Could not lookup place.", $sSQL, $aPlace);
|
||||||
|
}
|
||||||
if (!$aPlace['place_id']) return null;
|
if (!$aPlace['place_id']) return null;
|
||||||
|
|
||||||
if ($this->bAddressDetails)
|
if ($this->bAddressDetails)
|
||||||
|
|||||||
Reference in New Issue
Block a user