That else statement will never come into effect because the ORDER BY makes sure that the parent is dealt with before the children

git-svn-id: file:///svn/phpbb/trunk@7894 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2007-07-16 01:26:00 +00:00
parent 3158d0897e
commit d4675c109a

View file

@ -216,10 +216,6 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
$forum_rows[$parent_id]['forum_last_poster_colour'] = $row['forum_last_poster_colour']; $forum_rows[$parent_id]['forum_last_poster_colour'] = $row['forum_last_poster_colour'];
$forum_rows[$parent_id]['forum_id_last_post'] = $forum_id; $forum_rows[$parent_id]['forum_id_last_post'] = $forum_id;
} }
else if (!isset($forum_rows[$parent_id]['forum_id_last_post']))
{
$forum_rows[$parent_id]['forum_id_last_post'] = $forum_id;
}
} }
} }
$db->sql_freeresult($result); $db->sql_freeresult($result);