From: x99bachelart Date: Fri, 12 Sep 2003 18:49:12 +0000 (+0000) Subject: bugfix X-Git-Tag: 1.8~409 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=761fc9a682d924f55576d778909ffdc1cc6672c3;p=banana.git bugfix --- diff --git a/include/NetNNTP.inc.php b/include/NetNNTP.inc.php index 0b82fb0..8eafc5a 100644 --- a/include/NetNNTP.inc.php +++ b/include/NetNNTP.inc.php @@ -231,8 +231,8 @@ class nntp { $this->pline("GROUP $group\r\n"); $line = $this->gline(); if (substr($line,0,1)!="2") { - $this->lasterrorcode = substr($result,0,3); - $this->lasterrortext = substr($result,4); + $this->lasterrorcode = substr($line,0,3); + $this->lasterrortext = substr($line,4); return false; } if (preg_match("/^2\d{2} (\d+) (\d+) (\d+) ([^ ]+)/",