mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02: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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user