From ec674b7871804bec68b11c1bba30d775bb9a4e90 Mon Sep 17 00:00:00 2001 From: cigamit Date: Fri, 5 Dec 2003 03:48:02 +0000 Subject: [PATCH] Suppress the PHP error message if server is not reachable (We output our own Error Message about it later) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6243 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/mail_fetch/class.POP3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mail_fetch/class.POP3.php b/plugins/mail_fetch/class.POP3.php index a61bfa8f..589b24a6 100644 --- a/plugins/mail_fetch/class.POP3.php +++ b/plugins/mail_fetch/class.POP3.php @@ -90,7 +90,7 @@ class POP3 { return false; } - $fp = fsockopen("$server", $port, $errno, $errstr); + $fp = @fsockopen("$server", $port, $errno, $errstr); if(!$fp) { $this->ERROR = _("POP3 connect:") . ' ' . _("Error ") . "[$errno] [$errstr]"; -- 2.25.1