diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index cafc703262..fea4b3767c 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -437,7 +437,7 @@ class queue
if (!$config['email_enable'])
{
unset($this->queue_data['email']);
- continue;
+ continue 2;
}
break;
@@ -445,7 +445,7 @@ class queue
if (!$config['jab_enable'])
{
unset($this->queue_data['jabber']);
- continue;
+ continue 2;
}
include_once($phpbb_root_path . 'includes/functions_jabber.'.$phpEx);
@@ -460,13 +460,13 @@ class queue
if (!$this->jabber->Connect())
{
messenger::error('JABBER', 'Could not connect to Jabber server');
- continue;
+ continue 2;
}
if (!$this->jabber->SendAuth())
{
messenger::error('JABBER', 'Could not authorise on Jabber server');
- continue;
+ continue 2;
}
$this->jabber->SendPresence(NULL, NULL, 'online');
break;
@@ -494,7 +494,7 @@ class queue
// Logging instead of displaying!?
$message = 'Method: [ ' . (($config['smtp_delivery']) ? 'SMTP' : 'PHP') . ' ]
' . $err_msg . '
CALLING PAGE
' . ((!empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : $_ENV['PHP_SELF']);
messenger::error('MAIL', $message);
- continue 2;
+ continue 3;
}
break;