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

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;