From 82c17a914411d0a96b207ebff024d0adbb3a26e8 Mon Sep 17 00:00:00 2001 From: x99bachelart Date: Thu, 11 Sep 2003 21:39:26 +0000 Subject: [PATCH] bugfix (spool) - delid - post father may be referenced on local spool after his children (eg suck) --- include/spool.inc.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/spool.inc.php b/include/spool.inc.php index 7fee8b6..3d54680 100644 --- a/include/spool.inc.php +++ b/include/spool.inc.php @@ -87,7 +87,7 @@ class spool { // remove expired messages $msgids=array_flip($this->ids); for ($id=min(array_keys($this->overview)); $id<$first; $id++) { - $this->delid[$id]; + $this->delid($id); } $this->ids=array_flip($msgids); $first=max(array_keys($this->overview))+1; @@ -114,9 +114,12 @@ class spool { } foreach ($msgids as $id=>$msgid) { - $msg = new spoolhead($dates[$id],$subjects[$id],$froms[$id], - (isset($this->overview[$id]->desc)? - $this->overview[$id]->desc+1:1)); + if (isset($this->overview[$id])) { + $msg = $this->overview[$id]; + $msg->desc++; + } else { + $msg = new spoolhead($dates[$id],$subjects[$id],$froms[$id],1); + } $refs[$id]=str_replace("><","> <",$refs[$id]); $msgrefs=preg_split("/( |\t)/",strtr($refs[$id],$this->ids)); $parents=preg_grep("/^\d+$/",$msgrefs); -- 2.1.4