From 038f43c3fd05bf9c1203e0eaae6ceb45b4a37f4a Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 14 Oct 2003 13:24:07 +0000 Subject: [PATCH] Don't trigger_error when connect fails in queue, continue queue processing of next object on email/jabber failure git-svn-id: file:///svn/phpbb/trunk@4599 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_messenger.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 112f09f8cc..cafc703262 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -425,8 +425,9 @@ class queue foreach ($this->queue_data as $object => $data_ary) { - $package_size = $data_ary['package_size']; + @set_time_limit(60); + $package_size = $data_ary['package_size']; $num_items = (count($data_ary['data']) < $package_size) ? count($data_ary['data']) : $package_size; switch ($object) @@ -436,18 +437,16 @@ class queue if (!$config['email_enable']) { unset($this->queue_data['email']); - break 2; + continue; } - @set_time_limit(60); break; case 'jabber': if (!$config['jab_enable']) { unset($this->queue_data['jabber']); - break 2; + continue; } - @set_time_limit(60); include_once($phpbb_root_path . 'includes/functions_jabber.'.$phpEx); $this->jabber = new Jabber; @@ -461,13 +460,13 @@ class queue if (!$this->jabber->Connect()) { messenger::error('JABBER', 'Could not connect to Jabber server'); - trigger_error('Could not connect to Jabber server', E_USER_ERROR); + continue; } if (!$this->jabber->SendAuth()) { messenger::error('JABBER', 'Could not authorise on Jabber server'); - trigger_error('Could not authorise on Jabber server', E_USER_ERROR); + continue; } $this->jabber->SendPresence(NULL, NULL, 'online'); break; @@ -495,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); -// trigger_error($message, E_USER_ERROR); + continue 2; } break;