mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
fix(configuration): Allow non persistent SQL connections
This commit is contained in:
parent
2f4fa349ec
commit
05644d39f8
@ -72,7 +72,9 @@ class Database extends AbstractData
|
||||
// set default options
|
||||
$options['opt'][PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION;
|
||||
$options['opt'][PDO::ATTR_EMULATE_PREPARES] = false;
|
||||
$options['opt'][PDO::ATTR_PERSISTENT] = true;
|
||||
if (!array_key_exists(PDO::ATTR_PERSISTENT, $options['opt'])) {
|
||||
$options['opt'][PDO::ATTR_PERSISTENT] = true;
|
||||
}
|
||||
$db_tables_exist = true;
|
||||
|
||||
// setup type and dabase connection
|
||||
|
Loading…
Reference in New Issue
Block a user