Skip to content

Commit

Permalink
Update TopicListView.php (#9)
Browse files Browse the repository at this point in the history
Append items to `$message_index_selects` because a union does not reorder indexes
  • Loading branch information
live627 authored Sep 3, 2023
1 parent bc5752a commit 46b197c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/BestAnswer/TopicListView.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public static function loadBestMsgs()
*/
public static function selectBestMsg(&$message_index_selects)
{
$message_index_selects += array('t.id_best_msg', 't.id_board');
$message_index_selects[] = 't.id_best_msg';
$message_index_selects[] = 't.id_board';
}

/**
Expand Down

0 comments on commit 46b197c

Please sign in to comment.