Przeglądaj źródła

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 lat temu
rodzic
commit
94b2e444bb
1 zmienionych plików z 0 dodań i 4 usunięć
  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') {