summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-10-24 17:45:37 +0000
committerDries Buytaert <dries@buytaert.net>2002-10-24 17:45:37 +0000
commit2ec14f35ac7d5600e6d03b5cf79f717f43d1cfab (patch)
tree08cb18148be6b576a19b0ca6f7c693416afac5e7
parent2512ce7697e23b751d954d8541a93a2ec9af1c4f (diff)
downloadbrdo-2ec14f35ac7d5600e6d03b5cf79f717f43d1cfab.tar.gz
brdo-2ec14f35ac7d5600e6d03b5cf79f717f43d1cfab.tar.bz2
- Removed my superfluous check.
-rw-r--r--modules/statistics.module2
-rw-r--r--modules/statistics/statistics.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/statistics.module b/modules/statistics.module
index 707031ad8..f5b1bd569 100644
--- a/modules/statistics.module
+++ b/modules/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 (isset($id) && empty($mod) && empty($op)) {
+ if (isset($id) && empty($mod)) {
/* 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 */
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 707031ad8..f5b1bd569 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 (isset($id) && empty($mod) && empty($op)) {
+ if (isset($id) && empty($mod)) {
/* 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 */