summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-02-25 08:32:38 +0100
committerBart Visscher <bartv@thisnet.nl>2013-07-21 23:17:36 +0200
commit62ce3a5613a273c9208f272728ae5002d43d5096 (patch)
tree4ef08ca24a974cdb11c0bf5f20b2690c38d633d4
parent37a731bcad4636f682a2cbcc59dabc9e60494b01 (diff)
downloadnextcloud-server-62ce3a5613a273c9208f272728ae5002d43d5096.tar.gz
nextcloud-server-62ce3a5613a273c9208f272728ae5002d43d5096.zip
Only close db connection when disconnecting, keep the connection object
-rw-r--r--lib/db.php4
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;