]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix bug in transactions with PDO
authorRobin Appelman <icewind@owncloud.com>
Sun, 5 Feb 2012 00:23:41 +0000 (01:23 +0100)
committerRobin Appelman <icewind@owncloud.com>
Sun, 5 Feb 2012 00:23:41 +0000 (01:23 +0100)
lib/db.php

index 4860651b323a41f05d7ce299f266b736efb44676..82d9b67dca8279a22e9f56fc5f2ec75a641265a5 100644 (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();