Skip to content

Commit

Permalink
! b.board_order needs to be specified for InnoDB. (ManageCalendar.php)
Browse files Browse the repository at this point in the history
Signed-off-by: Nao <nao@wedge>
  • Loading branch information
Nao committed Jun 22, 2014
1 parent 305b629 commit 551c402
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions calendar/ManageCalendar.php
Expand Up @@ -338,9 +338,8 @@ function ModifyCalendarSettings($return_config = false)
$request = wesql::query('
SELECT b.id_board, b.name AS board_name, c.name AS cat_name
FROM {db_prefix}boards AS b
LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)',
array(
)
LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)
ORDER BY b.board_order'
);
while ($row = wesql::fetch_assoc($request))
$boards[$row['id_board']] = $row['cat_name'] . ' - ' . $row['board_name'];
Expand Down

0 comments on commit 551c402

Please sign in to comment.