diff --git a/modules/statistics.module b/modules/statistics.module index 84ee28a3f41..bd071d0bf34 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 84ee28a3f41..bd071d0bf34 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()); } } }