From 25cc5c42dfc4d3edcecfc29a99cc6ae656edfbb6 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Sun, 9 Feb 2014 21:04:41 -0600 Subject: [PATCH] Don't rely on MySQL's 'Natural Order', it might not be right, use explicit ORDER BY clause --- Sources/Subs-BoardIndex.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Subs-BoardIndex.php b/Sources/Subs-BoardIndex.php index 19e1bc7..fcae2c6 100644 --- a/Sources/Subs-BoardIndex.php +++ b/Sources/Subs-BoardIndex.php @@ -73,7 +73,8 @@ function getBoardIndex($boardIndexOptions) AND b.child_level >= {int:child_level}') : ' AND b.child_level BETWEEN ' . $boardIndexOptions['base_level'] . ' AND ' . ($boardIndexOptions['base_level'] + 1)) . //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( 'current_member' => $user_info['id'], 'child_level' => $boardIndexOptions['base_level'],