mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 05:52:32 +03:00
fix HTTP return on status when database is down
This commit is contained in:
parent
134553b184
commit
9e5c9ca81d
@ -10,7 +10,7 @@
|
||||
exit;
|
||||
}
|
||||
|
||||
$oDB =& getDB();
|
||||
$oDB =& DB::connect(CONST_Database_DSN, false);
|
||||
if (!$oDB || PEAR::isError($oDB))
|
||||
{
|
||||
statusError("No database");
|
||||
|
Loading…
Reference in New Issue
Block a user