diff options
author | Máté Bartus <mate.bartus@gmail.com> | 2016-03-08 22:07:33 +0100 |
---|---|---|
committer | Máté Bartus <mate.bartus@gmail.com> | 2016-03-08 22:07:33 +0100 |
commit | a0fa396901dfd7bea97b98570c6d6d5a51995392 (patch) | |
tree | f3b5d55e5d3cdbdb0aaa7df2816f96e7037e7cfb /phpBB/phpbb/notification/manager.php | |
parent | 05ccbc512dbb14731e23457dbd4e6591ef27e0fb (diff) | |
parent | 10004c4032a86364c834574a670032d2676b87cb (diff) | |
download | forums-a0fa396901dfd7bea97b98570c6d6d5a51995392.tar forums-a0fa396901dfd7bea97b98570c6d6d5a51995392.tar.gz forums-a0fa396901dfd7bea97b98570c6d6d5a51995392.tar.bz2 forums-a0fa396901dfd7bea97b98570c6d6d5a51995392.tar.xz forums-a0fa396901dfd7bea97b98570c6d6d5a51995392.zip |
Merge pull request #4207 from marc1706/ticket/14132
[ticket/14132] Use transaction for adding notifications to type table
Diffstat (limited to 'phpBB/phpbb/notification/manager.php')
-rw-r--r-- | phpBB/phpbb/notification/manager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/phpbb/notification/manager.php b/phpBB/phpbb/notification/manager.php index db92170dd8..233d65eebe 100644 --- a/phpBB/phpbb/notification/manager.php +++ b/phpBB/phpbb/notification/manager.php @@ -923,6 +923,8 @@ class manager { $notification_type_ids = $this->cache->get('notification_type_ids'); + $this->db->sql_transaction('begin'); + if ($notification_type_ids === false) { $notification_type_ids = array(); @@ -957,6 +959,8 @@ class manager $this->cache->put('notification_type_ids', $notification_type_ids); } + $this->db->sql_transaction('commit'); + return $notification_type_ids[$notification_type_name]; } |