aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 4badd69e9f..639e9aa899 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -4210,7 +4210,7 @@ function get_unread_topics_list($user_id = false, $sql_extra = '')
$sql = 'SELECT topic_id
FROM ' . TOPICS_TABLE . "
WHERE topic_last_post_time > {$user->data['user_lastmark']}
- AND " . $db->sql_in_set('topic_id', array_keys($unread_topics_list), true, true) . '
+ AND " . $db->sql_in_set('topic_id', $tracked_topics_list, true, true) . '
AND ' . $db->sql_in_set('forum_id', $tracked_forums_list, true, true) . "
$sql_extra
ORDER BY topic_last_post_time DESC";