aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2016-09-28 20:50:06 +0200
committerTristan Darricau <github@nicofuma.fr>2016-09-28 20:50:06 +0200
commit2fd2fb94cf4577b9a48c9d87cd0c14c852667a9f (patch)
tree60b0cbb3f2571eed55747b9d0baf9d70085101c6 /phpBB/phpbb
parent7d73d1ff83ea34c77b7d53a4c3a8a6444c368bfb (diff)
parent06c980f1ec61816846557e88832acd9b1c7644e5 (diff)
downloadforums-2fd2fb94cf4577b9a48c9d87cd0c14c852667a9f.tar
forums-2fd2fb94cf4577b9a48c9d87cd0c14c852667a9f.tar.gz
forums-2fd2fb94cf4577b9a48c9d87cd0c14c852667a9f.tar.bz2
forums-2fd2fb94cf4577b9a48c9d87cd0c14c852667a9f.tar.xz
forums-2fd2fb94cf4577b9a48c9d87cd0c14c852667a9f.zip
Merge pull request #4468 from markshawtoronto/ticket/14799
[ticket/14799] purge_notifications() should not leave open transactions. * markshawtoronto/ticket/14799: [ticket/14799] purge_notifications() should not leave open transactions. [3.1.x] Increase version for 3.1.11 development
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/notification/manager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/phpbb/notification/manager.php b/phpBB/phpbb/notification/manager.php
index ecba8938f2..f5663f4b34 100644
--- a/phpBB/phpbb/notification/manager.php
+++ b/phpBB/phpbb/notification/manager.php
@@ -945,6 +945,7 @@ class manager
{
if (!isset($this->notification_types[$notification_type_name]) && !isset($this->notification_types['notification.type.' . $notification_type_name]))
{
+ $this->db->sql_transaction('rollback');
throw new \phpbb\notification\exception($this->user->lang('NOTIFICATION_TYPE_NOT_EXIST', $notification_type_name));
}