mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
[ticket/17135] Fix code review issues
PHPBB-17135
This commit is contained in:
@@ -114,9 +114,8 @@ abstract class messenger_base extends \phpbb\notification\method\base
|
||||
|
||||
/** @psalm-suppress InvalidTemplateParam */
|
||||
$messenger_collection_iterator = $this->messenger->getIterator();
|
||||
while ($messenger_collection_iterator->valid())
|
||||
while ($messenger_collection_iterator as $messenger_method)
|
||||
{
|
||||
$messenger_method = $messenger_collection_iterator->current();
|
||||
if ($messenger_method->get_id() == $notify_method || $notify_method == NOTIFY_BOTH)
|
||||
{
|
||||
$messenger_method->template($notification->get_email_template(), $user['user_lang'], '', $template_dir_prefix);
|
||||
@@ -131,7 +130,6 @@ abstract class messenger_base extends \phpbb\notification\method\base
|
||||
// Save the queue in the messenger method class (has to be called or these messages could be lost)
|
||||
$messenger_method->save_queue();
|
||||
}
|
||||
$messenger_collection_iterator->next();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user