mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
Merge pull request #1394 from alexistoulotte/fix/allow-non-persistent-sql-connection
Allow non persistent SQL connections
This commit is contained in:
commit
083632a074
@ -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;
|
||||
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