From 94b2e444bb2dff37fbfb0973ef0489f4ae36af1d Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 7 Oct 2013 12:36:21 +0200 Subject: Fix commit précédent: BDD existante utilisable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le commit précédent faisait qu'on ne pouvait plus utiliser une BDD existante Corrigé (issue #145) --- public/install.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/public/install.php b/public/install.php index 46605fe6b..7b485e500 100644 --- a/public/install.php +++ b/public/install.php @@ -327,10 +327,6 @@ function checkBD () { $sql = sprintf (SQL_REQ_CREATE_DB, $_SESSION['bd_name']); $res = $c->query ($sql); - if (!$res) { - throw new PDOException(); - } - // on écrase la précédente connexion en sélectionnant la nouvelle BDD $str = 'mysql:host=' . $_SESSION['bd_host'] . ';dbname=' . $_SESSION['bd_name']; } elseif($_SESSION['bd_type'] == 'sqlite') { -- cgit v1.2.3