aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/mcp.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index 729469f47b..d05a7a980a 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -2401,9 +2401,10 @@ function mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by_sql,
$default_key = 't';
$default_dir = 'd';
$sql = 'SELECT COUNT(log_id) AS total
- FROM ' . LOG_MOD_TABLE . "
+ FROM ' . LOG_TABLE . "
$where_sql forum_id IN (" . (($forum_id) ? $forum_id : implode(', ', get_forum_list('m_'))) . ')
- AND log_time >= ' . $min_time;
+ AND log_time >= ' . $min_time . '
+ AND log_type = ' . LOG_MOD;
break;
}