diff options
-rw-r--r-- | modules/statistics.module | 2 | ||||
-rw-r--r-- | modules/statistics/statistics.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/statistics.module b/modules/statistics.module index 6161b6cb9..60991eff8 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -252,7 +252,7 @@ function statistics_recent_hits($type = 'all', $id = 0) { * Menu callback; presents the "Top pages" page. */ function statistics_top_pages() { - $sql = "SELECT COUNT(path) AS hits, path, title FROM {accesslog} GROUP BY path"; + $sql = "SELECT COUNT(path) AS hits, path, title FROM {accesslog} GROUP BY path, title"; $sql_cnt = "SELECT COUNT(DISTINCT(path)) FROM {accesslog}"; $header = array( diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 6161b6cb9..60991eff8 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -252,7 +252,7 @@ function statistics_recent_hits($type = 'all', $id = 0) { * Menu callback; presents the "Top pages" page. */ function statistics_top_pages() { - $sql = "SELECT COUNT(path) AS hits, path, title FROM {accesslog} GROUP BY path"; + $sql = "SELECT COUNT(path) AS hits, path, title FROM {accesslog} GROUP BY path, title"; $sql_cnt = "SELECT COUNT(DISTINCT(path)) FROM {accesslog}"; $header = array( |