Only close db connection when disconnecting, keep the connection object
This commit is contained in:
parent
37a731bcad
commit
62ce3a5613
1 changed files with 2 additions and 2 deletions
|
@ -380,8 +380,8 @@ class OC_DB {
|
|||
public static function disconnect() {
|
||||
// Cut connection if required
|
||||
if(self::$connection) {
|
||||
self::$connection=false;
|
||||
self::$DOCTRINE=false;
|
||||
self::$connection->close();
|
||||
self::$preparedQueries = array();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue