From 082fb25a7b969acd5c07bcb0c41087bc88b8d0b4 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Thu, 12 Apr 2007 09:06:32 +0000 Subject: [PATCH] Hide socket warnings git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@232 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- banana/nntpcore.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.1.4