diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index c09a2af257..75052c4360 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -198,6 +198,7 @@ class mcp_queue " . (($sort_order_sql{0} == 'u') ? 'AND u.user_id = p.poster_id' : '') . " AND t.topic_id = p.topic_id AND t.topic_first_post_id <> p.post_id + $limit_time_sql ORDER BY $sort_order_sql"; $result = $db->sql_query_limit($sql, $config['topics_per_page'], $start); @@ -244,6 +245,7 @@ class mcp_queue WHERE t.topic_approved = 0 AND t.forum_id IN ($forum_list) AND f.forum_id = t.forum_id + $limit_time_sql ORDER BY $sort_order_sql"; $result = $db->sql_query_limit($sql, $config['topics_per_page'], $start); diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php index 390024e199..fdd2ba9d8d 100755 --- a/phpBB/includes/mcp/mcp_reports.php +++ b/phpBB/includes/mcp/mcp_reports.php @@ -215,7 +215,7 @@ class mcp_reports $sort_days = $total = 0; $sort_key = $sort_dir = ''; $sort_by_sql = $sort_order_sql = array(); - mcp_sorting('reports', $sort_days, $sort_key, $sort_dir, $sort_by_sql, $sort_order_sql, $total, $forum_id, $topic_id); + mcp_sorting($mode, $sort_days, $sort_key, $sort_dir, $sort_by_sql, $sort_order_sql, $total, $forum_id, $topic_id); $forum_topics = ($total == -1) ? $forum_info['forum_topics'] : $total; $limit_time_sql = ($sort_days) ? 'AND t.topic_last_post_time >= ' . (time() - ($sort_days * 86400)) : ''; @@ -238,6 +238,7 @@ class mcp_reports " . (($sort_order_sql[0] == 'r') ? 'AND ru.user_id = p.poster_id' : '') . " " . (($topic_id) ? "AND p.topic_id = $topic_id" : '') . " AND t.topic_id = p.topic_id + $limit_time_sql ORDER BY $sort_order_sql"; $result = $db->sql_query_limit($sql, $config['topics_per_page'], $start);