Skip to content
Browse files

Correct DB syntax

  • Loading branch information...
adaur committed Aug 22, 2016
1 parent 92e34e1 commit f7e9e49766593d121e60e5539d01a1b3a0f25de7
Showing with 2 additions and 2 deletions.
  1. +2 −2 featherbb/Model/Topic.php
@@ -836,8 +836,8 @@ public function print_posts($topic_id, $start_from, $cur_topic, $is_admmod)
->inner_join('users', array('', '=', 'p.poster_id'), 'u')
->inner_join('groups', array('g.g_id', '=', 'u.group_id'), 'g')
->raw_join('LEFT OUTER JOIN '.ForumSettings::get('db_prefix').'`online`', "`o`.`user_id`!=1 AND `o`.`idle`=0 AND `o`.`user_id`=`u`.`id`", 'o')
->raw_join('LEFT OUTER JOIN '.ForumSettings::get('db_prefix').'`preferences`', "`pr`.`user`=`u`.`id` AND `pr`.`preference_name`='email.setting'", 'pr')
->left_outer_join('online', 'o.user_id!=1 AND o.idle=0 AND', 'o')
->left_outer_join('preferences', ' AND pr.preference_name=\'email.setting\'', 'pr')
->where_in('', $post_ids)
$result = Container::get('hooks')->fireDB('model.topic.print_posts_query', $result);

0 comments on commit f7e9e49

Please sign in to comment.
You can’t perform that action at this time.