mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
Merge branch '3.2.x'
* 3.2.x: [ticket/14799] purge_notifications() should not leave open transactions.
This commit is contained in:
commit
ab84605991
1 changed files with 2 additions and 0 deletions
|
@ -921,6 +921,8 @@ class manager
|
||||||
{
|
{
|
||||||
if (!isset($this->notification_types[$notification_type_name]) && !isset($this->notification_types['notification.type.' . $notification_type_name]))
|
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('NOTIFICATION_TYPE_NOT_EXIST', array($notification_type_name));
|
throw new \phpbb\notification\exception('NOTIFICATION_TYPE_NOT_EXIST', array($notification_type_name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue