mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-03 14:07:04 -05:00
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)
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user