fix IDE warnings

This commit is contained in:
Ralf Becker 2014-06-05 10:33:38 +00:00
parent 6d6e9d8a43
commit f5d4cdf7c0

View File

@ -103,7 +103,7 @@ class egw_mailer extends PHPMailer
{ {
$port = $this->Port; $port = $this->Port;
$hosts = explode(';',$this->Host); $hosts = explode(';',$this->Host);
foreach ($hosts as $k => &$host) foreach ($hosts as &$host)
{ {
$host = trim($host); // make sure there is no whitespace leading or trailling the host string $host = trim($host); // make sure there is no whitespace leading or trailling the host string
if (in_array($port,array(465,587)) && strpos($host,'://')===false) if (in_array($port,array(465,587)) && strpos($host,'://')===false)
@ -130,6 +130,7 @@ class egw_mailer extends PHPMailer
*/ */
public function SmtpSend($header, $body) public function SmtpSend($header, $body)
{ {
$matches = null;
$mail_id = $GLOBALS['egw']->hooks->process(array( $mail_id = $GLOBALS['egw']->hooks->process(array(
'location' => 'send_mail', 'location' => 'send_mail',
'subject' => $this->Subject, 'subject' => $this->Subject,