diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-25 08:32:38 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-21 23:17:36 +0200 |
commit | 62ce3a5613a273c9208f272728ae5002d43d5096 (patch) | |
tree | 4ef08ca24a974cdb11c0bf5f20b2690c38d633d4 | |
parent | 37a731bcad4636f682a2cbcc59dabc9e60494b01 (diff) | |
download | nextcloud-server-62ce3a5613a273c9208f272728ae5002d43d5096.tar.gz nextcloud-server-62ce3a5613a273c9208f272728ae5002d43d5096.zip |
Only close db connection when disconnecting, keep the connection object
-rw-r--r-- | lib/db.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/db.php b/lib/db.php index e70d66fc2ba..44d77bce80e 100644 --- a/lib/db.php +++ b/lib/db.php @@ -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; |