diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-01 00:07:46 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-01 00:07:46 +0200 |
commit | 2d199657506a53dda1bd2879f951684c26133ff2 (patch) | |
tree | 6ede8637f87ba541ec53b0d7a6d68c70d95f98b1 /lib | |
parent | 6e2ce76223eb6f0dcd1ef34e086fa59eb5fb3f8b (diff) | |
download | nextcloud-server-2d199657506a53dda1bd2879f951684c26133ff2.tar.gz nextcloud-server-2d199657506a53dda1bd2879f951684c26133ff2.zip |
some improvements to collection scanning
Diffstat (limited to 'lib')
-rw-r--r-- | lib/db.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/db.php b/lib/db.php index b7775b75ea4..9b18bc4c97f 100644 --- a/lib/db.php +++ b/lib/db.php @@ -367,6 +367,7 @@ class OC_DB { * @param string $savePoint (optional) name of the savepoint to set */ public static function beginTransaction($savePoint=''){ + self::connect(); if (!self::$DBConnection->supports('transactions')) { return false; } @@ -385,6 +386,7 @@ class OC_DB { * @param string $savePoint (optional) name of the savepoint to commit */ public static function commit($savePoint=''){ + self::connect(); if(!self::$DBConnection->inTransaction()){ return false; } |