Fix quotes conversion to html.
[banana.git] / banana / spool.inc.php
index 94897b9..2a6be2e 100644 (file)
@@ -178,7 +178,7 @@ class BananaSpool
         $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);
@@ -186,7 +186,7 @@ class BananaSpool
 
         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);
@@ -399,15 +399,15 @@ class BananaSpool
        
         $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),