diff options
| author | 2016-11-06 14:04:06 +0100 | |
|---|---|---|
| committer | 2016-11-06 14:04:06 +0100 | |
| commit | 829d9997d31929b45384808f7cca343edb00b0d2 (patch) | |
| tree | 18e07a53a06056f4d0710f70c1fed255fc329baa /app/install.php | |
| parent | 92910c212b4d2796c222c7891ea319fde3149525 (diff) | |
Fix small bugs in install
Small fixes in install (e.g. better check that DB password works)
Diffstat (limited to 'app/install.php')
| -rw-r--r-- | app/install.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/install.php b/app/install.php index fcc901713..5c8a6e0e8 100644 --- a/app/install.php +++ b/app/install.php @@ -230,7 +230,7 @@ function saveStep3() { $_SESSION['bd_error'] = ''; header('Location: index.php?step=4'); } else { - $_SESSION['bd_error'] = empty($config_array['db']['bd_error']) ? 'Unknown error!' : $config_array['db']['bd_error']; + $_SESSION['bd_error'] = empty($config_array['db']['error']) ? 'Unknown error!' : $config_array['db']['error']; } } invalidateHttpCache(); @@ -375,7 +375,7 @@ function checkDbUser(&$dbOptions) { } } catch (PDOException $e) { $ok = false; - $dbOptions['bd_error'] = $e->getMessage(); + $dbOptions['error'] = $e->getMessage(); } return $ok; } |
