diff options
| author | Máté Bartus <mate.bartus@gmail.com> | 2016-03-08 22:19:54 +0100 |
|---|---|---|
| committer | Máté Bartus <mate.bartus@gmail.com> | 2016-03-08 22:19:54 +0100 |
| commit | 6c814ef641318fffff5815c881120a4e4e2f094d (patch) | |
| tree | 791bdcc0d5712f98891cdeae087fcafc485494f7 /phpBB/phpbb/notification | |
| parent | e6e87ab214a1b6829bf64729ddb9718f6784ce45 (diff) | |
| parent | a01e3a0ffa2d9fb4d609317aa5e2caed4c521a68 (diff) | |
| download | forums-6c814ef641318fffff5815c881120a4e4e2f094d.tar forums-6c814ef641318fffff5815c881120a4e4e2f094d.tar.gz forums-6c814ef641318fffff5815c881120a4e4e2f094d.tar.bz2 forums-6c814ef641318fffff5815c881120a4e4e2f094d.tar.xz forums-6c814ef641318fffff5815c881120a4e4e2f094d.zip | |
Merge branch '3.2.x'
* 3.2.x:
[ticket/14132] Use transaction for adding notifications to type table
[ticket/14519] Skip query if all unread notifications are retrieved
[ticket/14483] Do not send headers by default on access via controller
Diffstat (limited to 'phpBB/phpbb/notification')
| -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 ea1b800dc5..3265bcb629 100644 --- a/phpBB/phpbb/notification/manager.php +++ b/phpBB/phpbb/notification/manager.php @@ -899,6 +899,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(); @@ -933,6 +935,8 @@ class manager $this->cache->put('notification_type_ids', $notification_type_ids); } + $this->db->sql_transaction('commit'); + return $notification_type_ids[$notification_type_name]; } |
