Only close db connection when disconnecting, keep the connection object

remotes/origin/stable6
Bart Visscher 2013-02-25 08:32:38 +07:00
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;