Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@307
9869982d-c50d-0410-be91-
f2a2ec7c7c7b
// Remove from the message tree
if (!is_null($parent)) {
// Remove from the message tree
if (!is_null($parent)) {
foreach ($parent->children as $key=>&$child) {
if ($child === $overview) {
unset($parent->children[$key]);
foreach ($parent->children as $key=>&$child) {
if ($child === $overview) {
unset($parent->children[$key]);
}
}
if (sizeof($overview->children)) {
}
}
if (sizeof($overview->children)) {
- $parent->children = array_merge($parent->children, $overview->children);
foreach ($overview->children as &$child) {
foreach ($overview->children as &$child) {
+ $parent->children[] =& $child;
+ $child->time = $time;
$child->parent =& $parent;
}
}
$child->parent =& $parent;
}
}
while (!is_null($parent)) {
$parent->desc--;
$parent->time = $time;
while (!is_null($parent)) {
$parent->desc--;
$parent->time = $time;