mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-23 13:06:15 +03:00
Do not swallow PEAR error.
This commit is contained in:
parent
9b01ddd641
commit
fd3fcea539
@ -124,7 +124,10 @@
|
|||||||
|
|
||||||
$oDB =& getDB();
|
$oDB =& getDB();
|
||||||
$x = $oDB->getRow('select * from place limit 1');
|
$x = $oDB->getRow('select * from place limit 1');
|
||||||
if (!$x || PEAR::isError($x)) fail('No Data');
|
if (PEAR::isError($x)) {
|
||||||
|
fail($x->getMessage());
|
||||||
|
}
|
||||||
|
if (!$x) fail('No Data');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($aCMDResult['create-functions'] || $aCMDResult['all'])
|
if ($aCMDResult['create-functions'] || $aCMDResult['all'])
|
||||||
|
Loading…
Reference in New Issue
Block a user