X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2FNetNNTP.inc.php;h=3934cd5d945667d46823e0cd4b6f81dc99e678a6;hb=aca382bbfd5c68faaddbe703c5a9180882b9194a;hp=f15b6b193852d32f8504252b4090a10332f6f024;hpb=1786dc366a877ac9c9040bb5274c4591c4e3ca68;p=banana.git diff --git a/banana/NetNNTP.inc.php b/banana/NetNNTP.inc.php index f15b6b1..3934cd5 100644 --- a/banana/NetNNTP.inc.php +++ b/banana/NetNNTP.inc.php @@ -475,8 +475,9 @@ class nntp $array = array(); while (($result = $this->gline()) != '.') { - preg_match("/([^ \t]+) (.*)$/", $result, $regs); - $array[$regs[1]] = $regs[2]; + if (preg_match("/([^ \t]+) (.*)$/", $result, $regs)) { + $array[$regs[1]] = $regs[2]; + } } return $array; } @@ -507,4 +508,5 @@ class nntp } } +// vim:set et sw=4 sts=4 ts=4 ?>