diff --git a/phpBB/includes/ucp/ucp_notifications.php b/phpBB/includes/ucp/ucp_notifications.php index a183bc4543..b0eeb915ec 100644 --- a/phpBB/includes/ucp/ucp_notifications.php +++ b/phpBB/includes/ucp/ucp_notifications.php @@ -61,7 +61,7 @@ class ucp_notifications { foreach ($notification_methods as $method => $method_data) { - $is_set_notify = ($request->is_set_post(str_replace('.', '_', $type . '_' . $method_data['id']))) ? true : false; + $is_set_notify = $request->is_set_post(str_replace('.', '_', $type . '_' . $method_data['id'])); /** * Event to perform additional actions before ucp_notifications is submitted @@ -189,8 +189,6 @@ class ucp_notifications * @param \phpbb\user $user * @param \phpbb\event\dispatcher_interface $phpbb_dispatcher * @param string $block - * - * @changed 3.2.10-RC1 Added $phpbb_dispatcher */ public function output_notification_types($subscriptions, \phpbb\notification\manager $phpbb_notifications, \phpbb\template\template $template, \phpbb\user $user, \phpbb\event\dispatcher_interface $phpbb_dispatcher, $block = 'notification_types') { diff --git a/phpBB/phpbb/notification/manager.php b/phpBB/phpbb/notification/manager.php index a2ea9e74da..9a212dcf8a 100644 --- a/phpBB/phpbb/notification/manager.php +++ b/phpBB/phpbb/notification/manager.php @@ -341,14 +341,14 @@ class manager } /** - * Allow filtering the notify_users array by notification_type_name & notification_method_name for a notification that is about to be sent. + * Allow filtering the $notify_users array by $notification_type_name & $notification_method_name for a notification that is about to be sent. * Here, $notify_users is already filtered from users who've already been notified. * * @event core.notification_manager_add_notifications_for_users_modify_data * @var string notification_type_name The notification type identifier * @var string notification_method_name The notification method identifier (read only) - * @var array data Data specific for the notification_type_name used will be inserted - * @var array notify_users The array of userid that are going to be notified for this notification. Set to array() to cancel or unset each user by userid. + * @var array data Data specific for this type that will be inserted + * @var array notify_users User list to notify * @var array notified_users The list of the users already notified (read only) * * @since 3.2.10-RC1