From a8f10deee5ac9b9cfcd0963567aeaa6b9d81ed2a Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Sat, 1 Sep 2018 16:54:25 +0100 Subject: [PATCH] Fixed web installer to allow users to change db creds if we can't connect (#9126) --- html/install.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/install.php b/html/install.php index 423f60f14b..344db70b7e 100644 --- a/html/install.php +++ b/html/install.php @@ -52,6 +52,10 @@ if ($stage > 1) { try { if ($stage != 6) { dbConnect($dbhost, $dbuser, $dbpass, $dbname, $dbport, $dbsocket); + if (dbIsConnected() === false) { + $msg = "We could not connect to your database, please check the details and try again"; + $stage = 1; + } } if ($stage == 2 && $_SESSION['build-ok'] == true) { $stage = 3;