From 3857827b980fc2c2858c7f8a33a6e0ce99fcf008 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Fri, 12 Jul 2013 15:58:36 +0200 Subject: [PATCH] check if database name is not empty in install process --- core/lib/Thelia/Command/Install.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/lib/Thelia/Command/Install.php b/core/lib/Thelia/Command/Install.php index 9d4d4d1fd..53a573375 100755 --- a/core/lib/Thelia/Command/Install.php +++ b/core/lib/Thelia/Command/Install.php @@ -272,6 +272,10 @@ class Install extends ContainerAwareCommand protected function tryConnection($connectionInfo, OutputInterface $output) { + if (is_null($connectionInfo["dbName"])) { + return false; + } + $dsn = "mysql:host=%s"; try {