projects
/
banana.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix deletion of message from spool
[banana.git]
/
banana
/
spool.inc.php
diff --git
a/banana/spool.inc.php
b/banana/spool.inc.php
index
361a43c
..
172e4aa
100644
(file)
--- 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);
}
unset($this->overview[$_id]);
$msgid = array_search($_id, $this->ids);
- if ($msgid) {
+ if ($msgid
!== false
) {
unset($this->ids[$msgid]);
}
unset($this->ids[$msgid]);
}
+ $msgid = array_search($_id, $this->roots);
+ if ($msgid !== false) {
+ unset($this->roots[$msgid]);
+ }
if ($write) {
$this->markAllAsRead();
if ($write) {
$this->markAllAsRead();