aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r--phpBB/includes/db/dbal.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php
index ed6ba71fea..b49f4511aa 100644
--- a/phpBB/includes/db/dbal.php
+++ b/phpBB/includes/db/dbal.php
@@ -588,7 +588,12 @@ class dbal
trigger_error($message, E_USER_ERROR);
}
-
+
+ if ($this->transaction)
+ {
+ $this->sql_transaction('rollback');
+ }
+
return $error;
}