Fix msg-id references.
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sun, 28 Oct 2007 16:52:21 +0000 (16:52 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:53 +0000 (00:35 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@289 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/message.func.inc.php
banana/mimepart.inc.php
banana/nntpcore.inc.php

index 3b00c9c..31f3e47 100644 (file)
@@ -140,7 +140,7 @@ function banana__catchMailLink($email)
     $mid = '<' . $email . '>';
     if (isset(Banana::$spool->ids[$mid])) {
         return Banana::$page->makeLink(Array('group' => Banana::$group,
-                                             'artid' => Banana::$spool->ids[$mid],
+                                             'artid' => Banana::$spool->ids[$mid]->id,
                                              'text'  => $email));
     } elseif (strpos($email, '$') !== false) {
         return $email;
index ed7080f..6b0f399 100644 (file)
@@ -337,7 +337,7 @@ class BananaMimePart
         }
 
         if (!is_null($this->charset)) {
-            $body = iconv($this->charset, 'UTF-8//IGNORE', $this->body);
+            $body = @iconv($this->charset, 'UTF-8//IGNORE', $this->body);
             if (empty($body)) {
                 return;
             }
index b6170b8..4b8e9c0 100644 (file)
@@ -466,7 +466,7 @@ class BananaNNTPCore
         $array  =& $this->fetchResult();
         $groups = array();
         foreach ($array as &$result) {
-            list($group, $desc) = split("[ \t]", $result, 2);
+            @list($group, $desc) = split("[ \t]", $result, 2);
             $groups[$group] = $desc;
         }
         return $groups;