From cfb7fe5d9f451e667b12440409ad6cbec6a2be43 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Mon, 22 Jan 2007 17:57:50 +0000 Subject: [PATCH 1/1] Fix deletion of message from spool git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@178 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- banana/spool.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); -- 2.1.4