mirror of
https://github.com/moparisthebest/moparscape.org-smf
synced 2024-10-31 15:25:01 -04:00
Don't rely on MySQL's 'Natural Order', it might not be right, use explicit ORDER BY clause
This commit is contained in:
parent
71ca8a524a
commit
25cc5c42df
@ -73,7 +73,8 @@ function getBoardIndex($boardIndexOptions)
|
|||||||
AND b.child_level >= {int:child_level}') : '
|
AND b.child_level >= {int:child_level}') : '
|
||||||
AND b.child_level BETWEEN ' . $boardIndexOptions['base_level'] . ' AND ' . ($boardIndexOptions['base_level'] + 1)) .
|
AND b.child_level BETWEEN ' . $boardIndexOptions['base_level'] . ' AND ' . ($boardIndexOptions['base_level'] + 1)) .
|
||||||
//xxx show archived boards
|
//xxx show archived boards
|
||||||
(isset($show_archived) && !$show_archived ? ' AND c.forumid = 1' : ''),
|
(isset($show_archived) && !$show_archived ? ' AND c.forumid = 1' : '').'
|
||||||
|
ORDER BY ' . ($boardIndexOptions['include_categories'] ? 'c.cat_order, ' : '') . 'b.board_order',
|
||||||
array(
|
array(
|
||||||
'current_member' => $user_info['id'],
|
'current_member' => $user_info['id'],
|
||||||
'child_level' => $boardIndexOptions['base_level'],
|
'child_level' => $boardIndexOptions['base_level'],
|
||||||
|
Loading…
Reference in New Issue
Block a user