From 62ce3a5613a273c9208f272728ae5002d43d5096 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Mon, 25 Feb 2013 08:32:38 +0100 Subject: [PATCH] Only close db connection when disconnecting, keep the connection object --- lib/db.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/db.php b/lib/db.php index e70d66fc2b..44d77bce80 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;