From: x2003bruneau Date: Thu, 12 Apr 2007 09:06:32 +0000 (+0000) Subject: Hide socket warnings X-Git-Tag: 1.8~74 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=082fb25a7b969acd5c07bcb0c41087bc88b8d0b4;p=banana.git Hide socket warnings git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@232 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- diff --git a/banana/nntpcore.inc.php b/banana/nntpcore.inc.php index f1cf460..0a1f3c1 100644 --- a/banana/nntpcore.inc.php +++ b/banana/nntpcore.inc.php @@ -98,7 +98,7 @@ class BananaNNTPCore */ private function getLine() { - return rtrim(fgets($this->ns, 1200)); + return rtrim(@fgets($this->ns, 1200)); } /** fetch data (and on delimitor) @@ -141,7 +141,7 @@ class BananaNNTPCore $db_line = preg_replace('/PASS .*/', 'PASS *******', $line); $this->bt[] = array('action' => $db_line, 'time' => microtime(true)); } - return fputs($this->ns, $line, strlen($line)); + return @fputs($this->ns, $line, strlen($line)); } /** put a message (multiline)