Skip to content

Commit

Permalink
! Fixed crash on Unread Replies when using MySQL 5.7+ with default se…
Browse files Browse the repository at this point in the history
…ttings. (UnreadReplies.php)
  • Loading branch information
Nao committed Feb 20, 2017
1 parent 82c2ba5 commit 13ec5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/UnreadReplies.php
Expand Up @@ -354,7 +354,7 @@ function UnreadReplies()
);
else
$request = wesql::query('
SELECT DISTINCT t.id_topic
SELECT DISTINCT t.id_topic, {raw:sort}
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_topic = t.id_topic AND m.id_member = {int:current_member})' . (strpos($_REQUEST['sort'], 'ms.') === false ? '' : '
INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg)') . (strpos($_REQUEST['sort'], 'mems.') === false ? '' : '
Expand Down

0 comments on commit 13ec5ff

Please sign in to comment.