From 45f3ac9bab3822de7319c42e8f5e93b7f3465353 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sun, 2 Jan 2005 03:13:50 +0000 Subject: [PATCH] bugfix + dead code --- include/spool.inc.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/include/spool.inc.php b/include/spool.inc.php index 2522f04..942f36e 100644 --- a/include/spool.inc.php +++ b/include/spool.inc.php @@ -192,9 +192,10 @@ class spool if (sizeof($newpostsids)>0) { switch ($_display) { case 1: - foreach ($this->roots as $i) { + foreach ($this->roots as $k=>$i) { if ($this->overview[$i]->descunread==0) { $this->killdesc($i); + unset($this->roots[$k]); } } break; @@ -205,10 +206,6 @@ class spool return true; } - function cmp($a, $b) { - return $this->overview[$a]->date < $this->overview[$b]->date; - } - function save($file) { uasort($this->overview, "spoolcompare"); @@ -234,8 +231,6 @@ class spool $this->killdesc($c); } } - $pos = array_search($_id, $this->roots); - unset($this->roots[$pos]); unset($this->overview[$_id]); $msgid = array_search($_id, $this->ids); if ($msgid) { -- 2.1.4