diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-01-29 15:00:41 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-01-29 15:00:41 +0000 |
commit | fb1c5e22f6ac1cad6ddf9b6421bf21c00a95ae0c (patch) | |
tree | 2fbf34fb0ffde207316b799ad3f1e5df7621901e | |
parent | 5efd4f2c00c8d3f12a881d4fce54bc92986902c5 (diff) | |
download | forums-fb1c5e22f6ac1cad6ddf9b6421bf21c00a95ae0c.tar forums-fb1c5e22f6ac1cad6ddf9b6421bf21c00a95ae0c.tar.gz forums-fb1c5e22f6ac1cad6ddf9b6421bf21c00a95ae0c.tar.bz2 forums-fb1c5e22f6ac1cad6ddf9b6421bf21c00a95ae0c.tar.xz forums-fb1c5e22f6ac1cad6ddf9b6421bf21c00a95ae0c.zip |
#17025
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8346 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/docs/CHANGELOG.html | 1 | ||||
-rw-r--r-- | phpBB/includes/db/dbal.php | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index a8211ae925..e7013e9bae 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -103,6 +103,7 @@ <li>[Fix] Stricter checks on smilie packs (Bug #19675)</li> <li>[Fix] Gracefully return from cancelling pm drafts (Bug #19675)</li> <li>[Fix] Possible login problems with IE7 if browser check is activated (Bug #20135)</li> + <li>[Fix] Fix possible database transaction errors if code returns on error and rollback happened (Bug #17025)</li> </ul> <a name="v30rc8"></a><h3>1.i. Changes since 3.0.RC8</h3> diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php index e37ccda0db..4964ac87f7 100644 --- a/phpBB/includes/db/dbal.php +++ b/phpBB/includes/db/dbal.php @@ -262,6 +262,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) |