Only close db connection when disconnecting, keep the connection object

This commit is contained in:
Bart Visscher 2013-02-25 08:32:38 +01:00
parent 37a731bcad
commit 62ce3a5613
1 changed files with 2 additions and 2 deletions

View File

@ -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;