Преглед изворни кода

Fix commit précédent: BDD existante utilisable

Le commit précédent faisait qu'on ne pouvait plus utiliser une BDD existante
Corrigé (issue #145)
Marien Fressinaud пре 12 година
родитељ
комит
94b2e444bb
1 измењених фајлова са 0 додато и 4 уклоњено
  1. 0 4
      public/install.php

+ 0 - 4
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') {