diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-10-23 06:58:29 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-10-23 06:58:29 +0000 |
commit | 162432a7eb944d8422e9cd6042d95a92c9c9b2d6 (patch) | |
tree | 27c37f60c2a9b871d278202054527f0fa1cec7d6 | |
parent | 72ae2d39953125a231592d2a2b7ad14afe35b1bd (diff) | |
download | brdo-162432a7eb944d8422e9cd6042d95a92c9c9b2d6.tar.gz brdo-162432a7eb944d8422e9cd6042d95a92c9c9b2d6.tar.bz2 |
- Bugfix: set the timestamp of the node counters. Patch by Moshe.
-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 84ee28a3f..bd071d0bf 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -46,7 +46,7 @@ function statistics_exit() { // if we affected 0 rows, this is the first time viewing the node if (!db_affected_rows()) { // must create a new row to store counter's for new node - db_query("INSERT INTO {node_counter} (nid, daycount, totalcount) VALUES(%d, 1, 1)", arg(2)); + db_query("INSERT INTO {node_counter} (nid, daycount, totalcount, timestamp) VALUES(%d, 1, 1, %d)", arg(2), time()); } } } diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 84ee28a3f..bd071d0bf 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -46,7 +46,7 @@ function statistics_exit() { // if we affected 0 rows, this is the first time viewing the node if (!db_affected_rows()) { // must create a new row to store counter's for new node - db_query("INSERT INTO {node_counter} (nid, daycount, totalcount) VALUES(%d, 1, 1)", arg(2)); + db_query("INSERT INTO {node_counter} (nid, daycount, totalcount, timestamp) VALUES(%d, 1, 1, %d)", arg(2), time()); } } } |