bugfix
authorx99bachelart <x99bachelart>
Fri, 12 Sep 2003 18:49:12 +0000 (18:49 +0000)
committerx99bachelart <x99bachelart>
Fri, 12 Sep 2003 18:49:12 +0000 (18:49 +0000)
include/NetNNTP.inc.php

index 0b82fb0..8eafc5a 100644 (file)
@@ -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+) ([^ ]+)/",