mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
fix HTTP return on status when database is down
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$oDB =& getDB();
|
$oDB =& DB::connect(CONST_Database_DSN, false);
|
||||||
if (!$oDB || PEAR::isError($oDB))
|
if (!$oDB || PEAR::isError($oDB))
|
||||||
{
|
{
|
||||||
statusError("No database");
|
statusError("No database");
|
||||||
|
|||||||
Reference in New Issue
Block a user