$msgids = $banana->nntp->xhdr('Message-ID', $arg);
$refs = $banana->nntp->xhdr('References', $arg);
- if (is_array($this->ids)) {
+ if (is_array(@$this->ids)) {
$this->ids = array_merge($this->ids, array_flip($msgids));
} else {
$this->ids = array_flip($msgids);
foreach ($msgids as $id=>$msgid) {
$msg = new BananaSpoolHead($dates[$id], $subjects[$id], $froms[$id]);
- $refs[$id] = str_replace('><', '> <', $refs[$id]);
+ $refs[$id] = str_replace('><', '> <', @$refs[$id]);
$msgrefs = preg_split("/[ \t]/", strtr($refs[$id], $this->ids));
$parents = preg_grep('/^\d+$/', $msgrefs);
$msg->parent = array_pop($parents);
$new = '<div class="banana_action">'
. makeImgLink(Array('group' => $this->group,
- 'action' => 'new'),
+ 'action' => 'new'),
'post.gif',
- 'Nouveau message');
+ _b_('Nouveau message'));
$new .= '</div>';
if (is_null($_ref)) {
- $res .= '<tr><th>'._b_('Date').'</th>';
- $res .= '<th>'._b_('Sujet').'</th>';
- $res .= '<th>'. $new . _b_('Auteur').'</th></tr>';
+ $res .= '<tr><th>' . _b_('Date') . '</th>';
+ $res .= '<th>' . $new . _b_('Sujet') . '</th>';
+ $res .= '<th>' . _b_('Auteur') . '</th></tr>';
} else {
$res .= '<tr><th colspan="3">' . _b_('Aperçu de ')
. makeHREF(Array('group' => $this->group),