From 2d701162ce9b26a598cb04a5b876aba6099e133a Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Wed, 23 Jan 2019 15:07:37 +0100 Subject: [PATCH] Fix setup script --- scripts/setup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/setup.php b/scripts/setup.php index 708d2c0..f874324 100644 --- a/scripts/setup.php +++ b/scripts/setup.php @@ -114,8 +114,8 @@ switch ($command) { $messages[] = "
"; break; } - if (empty(uConfig::$dbname) || empty(uConfig::$dbhost) || empty(uConfig::$dbuser)) { - $messages[] = sprintf($langSetup["nodbsettings"], "\$dbname, \$dbhost, \$dbuser, \$dbpass"); + if (empty(uConfig::$dbdsn) || empty(uConfig::$dbuser)) { + $messages[] = sprintf($langSetup["nodbsettings"], "\$dbdsn, \$dbuser, \$dbpass"); $messages[] = $langSetup["dorestart"]; $messages[] = "
"; break;