Skip to content

Commit

Permalink
Fix bug in topic view
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick committed Nov 7, 2014
1 parent 810ac08 commit 439c003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/general_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function draw_category_list() {
}

function draw_topic_list() {
global $lang, $result, $db, $luna_config, $zset;
global $lang, $result, $db, $luna_config, $zset, $post_ids;

// Retrieve the posts (and their respective poster/online status)
$result = $db->query('SELECT u.email, u.title, u.url, u.location, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, p.marked, g.g_id, g.g_user_title, o.user_id AS is_online FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id LEFT JOIN '.$db->prefix.'online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.id IN ('.implode(',', $post_ids).') ORDER BY p.id', true) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
Expand Down

0 comments on commit 439c003

Please sign in to comment.