X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fnntp.inc.php;h=910075dfbd94ec0235db2b5db455b8e5b981555e;hb=8da34e72c1d74d8fe74c02e256d3d959102717f9;hp=a880dd0ce4a05bf4d9bffaae2b83d825de3ea80d;hpb=b0d3d6655d783466a0aac0053956437097cf5af6;p=banana.git diff --git a/banana/nntp.inc.php b/banana/nntp.inc.php index a880dd0..910075d 100644 --- a/banana/nntp.inc.php +++ b/banana/nntp.inc.php @@ -89,7 +89,12 @@ class BananaNNTP extends BananaNNTPCore implements BananaProtocoleInterface foreach ($this->boxes as $group=>&$desc) { list($msgnum, $first, $last, $groupname) = $this->group($group); $this->ingroup = $group; - $new = count($this->newnews($group, $since)); + $new = $this->newnews($group, $since); + if (!is_array($new)) { + $new = 0; + } else { + $new = count($new); + } $desc['msgnum'] = $msgnum; $desc['unread'] = $new; }