Skip to content

Commit

Permalink
Merge branch '3.3.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
marc1706 committed Jan 2, 2024
2 parents 39cad1d + c4642d2 commit e5ddf24
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 7 additions & 2 deletions phpBB/phpbb/notification/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,12 +410,17 @@ public function add_notifications_for_users($notification_type_name, $data, $not

foreach ($methods as $method)
{
// setup the notification methods and add the notification to the queue
// Do not load non-existent notification methods
if (!isset($this->notification_methods[$method]))
{
continue;
}

// Setup the notification methods and add the notification to the queue
if (!isset($notification_methods[$method]))
{
$notification_methods[$method] = $this->get_method_class($method);
}

$notification_methods[$method]->add_to_queue($notification);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,12 @@
<value>notification.method.board</value>
<value>0</value>
</row>
<row>
<value>notification.type.bookmark</value>
<value>0</value>
<value>3</value>
<value>notification.method.nonexistent</value>
<value>1</value>
</row>
</table>
</dataset>

0 comments on commit e5ddf24

Please sign in to comment.