diff --git a/src/messenger/webim/libs/classes/database.php b/src/messenger/webim/libs/classes/database.php index c838e6f9..aeae25dc 100644 --- a/src/messenger/webim/libs/classes/database.php +++ b/src/messenger/webim/libs/classes/database.php @@ -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) {