diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-10-21 19:47:41 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-10-21 19:47:41 +0000 |
commit | 4efe2c887b8dff035f7b7aed09abfe06cb081c41 (patch) | |
tree | 45fff11c9051f49bd82be316087c821d2a1f5dc4 /modules/statistics/statistics.module | |
parent | 7d1c1fcc16c3de703eb1e1b01e6fa2b19ec9a3f8 (diff) | |
download | brdo-4efe2c887b8dff035f7b7aed09abfe06cb081c41.tar.gz brdo-4efe2c887b8dff035f7b7aed09abfe06cb081c41.tar.bz2 |
- Fixed bug reported by Ax.
Diffstat (limited to 'modules/statistics/statistics.module')
-rw-r--r-- | modules/statistics/statistics.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index b8304eaca..707031ad8 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -4,7 +4,7 @@ global $id, $mod, $nid, $user, $recent_activity; if (variable_get("statistics_enable_node_counter", 0)) { /* node view counters are enabled */ - if ($id > 0 && (!$mod)) { + if (isset($id) && empty($mod) && empty($op)) { /* a node has been viewed, so updated the node's counters */ db_query("UPDATE statistics SET daycount = daycount + 1, totalcount = totalcount + 1, timestamp = '%s' WHERE nid = '%s'", time(), $id); /* if we affected 0 rows, this is the first time viewing the node */ @@ -841,7 +841,7 @@ function statistics_get($nid) { /* Block hook */ function statistics_block() { - $block[0]["subject"] = variable_get("statistics_block_top_title", "Top nodes"); + $block[0]["subject"] = variable_get("statistics_block_top_title", "Popular content"); $block[0]["content"] = statistics_display_topnodes_block(); $block[0]["info"] = "Top nodes"; |