aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/dbal.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-01-29 15:57:56 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-01-29 15:57:56 +0000
commit140746089594307c9bc2ad084ea2355dcbddbe16 (patch)
treeb9c2f876617ee14253fe9d36b3520b2464497eaa /phpBB/includes/db/dbal.php
parente970da651479853156a7f1d7d9407d787c694bed (diff)
downloadforums-140746089594307c9bc2ad084ea2355dcbddbe16.tar
forums-140746089594307c9bc2ad084ea2355dcbddbe16.tar.gz
forums-140746089594307c9bc2ad084ea2355dcbddbe16.tar.bz2
forums-140746089594307c9bc2ad084ea2355dcbddbe16.tar.xz
forums-140746089594307c9bc2ad084ea2355dcbddbe16.zip
Merging revisions #r8346, #r8347 and #r8348
git-svn-id: file:///svn/phpbb/trunk@8349 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/dbal.php')
-rw-r--r--phpBB/includes/db/dbal.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php
index d22d2f0520..5fd6de7f50 100644
--- a/phpBB/includes/db/dbal.php
+++ b/phpBB/includes/db/dbal.php
@@ -271,6 +271,13 @@ class dbal
return true;
}
+ // Check if there is a transaction (no transaction can happen if there was an error, with a combined rollback and error returning enabled)
+ // This implies we have transaction always set for autocommit db's
+ if (!$this->transaction)
+ {
+ return false;
+ }
+
$result = $this->_sql_transaction('commit');
if (!$result)