fix bug in transactions with PDO

This commit is contained in:
Robin Appelman 2012-02-05 01:23:41 +01:00
parent 7c00aedc37
commit 0bb48d814b

View file

@ -486,7 +486,7 @@ class OC_DB {
*/
public static function beginTransaction(){
self::connect();
if (self::$backend=self::BACKEND_MDB2 && !self::$connection->supports('transactions')) {
if (self::$backend==self::BACKEND_MDB2 && !self::$connection->supports('transactions')) {
return false;
}
self::$connection->beginTransaction();