From 162432a7eb944d8422e9cd6042d95a92c9c9b2d6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 23 Oct 2003 06:58:29 +0000 Subject: - Bugfix: set the timestamp of the node counters. Patch by Moshe. --- modules/statistics.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/statistics.module') 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()); } } } -- cgit v1.2.3