- Removed my superfluous check.

4.1.x
Dries Buytaert 2002-10-24 17:45:37 +00:00
parent 2512ce7697
commit 2ec14f35ac
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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 */