mirror of
https://github.com/Mibew/design.git
synced 2025-01-22 18:10:33 +03:00
Fixed ability to use persistent database connection with an object of the Database class
This commit is contained in:
parent
92019f99a4
commit
b3d7a7a124
@ -183,7 +183,8 @@ Class Database{
|
||||
$instance->dbh = new PDO(
|
||||
"mysql:host={$instance->dbHost};dbname={$instance->dbName}",
|
||||
$instance->dbLogin,
|
||||
$instance->dbPass
|
||||
$instance->dbPass,
|
||||
array(PDO::ATTR_PERSISTENT => $instance->usePersistentConnection)
|
||||
);
|
||||
|
||||
if ($instance->forceCharsetInConnection) {
|
||||
|
Loading…
Reference in New Issue
Block a user