Hide socket warnings
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Thu, 12 Apr 2007 09:06:32 +0000 (09:06 +0000)
committerx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Thu, 12 Apr 2007 09:06:32 +0000 (09:06 +0000)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@232 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/nntpcore.inc.php

index f1cf460..0a1f3c1 100644 (file)
@@ -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)