mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
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:
parent
3158d0897e
commit
d4675c109a
1 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue