From: x2003bruneau Date: Mon, 22 Jan 2007 17:57:50 +0000 (+0000) Subject: Fix deletion of message from spool X-Git-Tag: 1.8~121 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=cfb7fe5d9f451e667b12440409ad6cbec6a2be43;p=banana.git Fix deletion of message from spool git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@178 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- diff --git a/banana/spool.inc.php b/banana/spool.inc.php index 361a43c..172e4aa 100644 --- a/banana/spool.inc.php +++ b/banana/spool.inc.php @@ -364,9 +364,13 @@ class BananaSpool } unset($this->overview[$_id]); $msgid = array_search($_id, $this->ids); - if ($msgid) { + if ($msgid !== false) { unset($this->ids[$msgid]); } + $msgid = array_search($_id, $this->roots); + if ($msgid !== false) { + unset($this->roots[$msgid]); + } if ($write) { $this->markAllAsRead();