X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fspool.inc.php;h=86719f541102459e15b25a6e5ce58524f368f02d;hb=694a26ddbd8a37b658900291af371f5403d34009;hp=efb2a044929581343d4511b0f05fe45e91dc9ae7;hpb=0fa5e39a1910258f64f32bfcc50a82d3b77ea736;p=banana.git diff --git a/banana/spool.inc.php b/banana/spool.inc.php index efb2a04..86719f5 100644 --- a/banana/spool.inc.php +++ b/banana/spool.inc.php @@ -430,6 +430,7 @@ class BananaSpool // Remove from the message tree if (!is_null($parent)) { + $time = time(); foreach ($parent->children as $key=>&$child) { if ($child === $overview) { unset($parent->children[$key]); @@ -437,12 +438,12 @@ class BananaSpool } } if (sizeof($overview->children)) { - $parent->children = array_merge($parent->children, $overview->children); foreach ($overview->children as &$child) { + $parent->children[] =& $child; + $child->time = $time; $child->parent =& $parent; } } - $time = time(); while (!is_null($parent)) { $parent->desc--; $parent->time = $time;