From: Sarah Hoffmann Date: Sat, 8 Aug 2015 15:50:29 +0000 (+0200) Subject: fix HTTP return on status when database is down X-Git-Tag: v.2.5.0~37 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/9e5c9ca81d1aa645e1ac99f7dc63e8d81addf0d8?ds=sidebyside fix HTTP return on status when database is down --- diff --git a/website/status.php b/website/status.php index a876f999..832f4600 100644 --- a/website/status.php +++ b/website/status.php @@ -10,7 +10,7 @@ exit; } - $oDB =& getDB(); + $oDB =& DB::connect(CONST_Database_DSN, false); if (!$oDB || PEAR::isError($oDB)) { statusError("No database");