- Bugfix: set the timestamp of the node counters. Patch by Moshe.

4.3.x
Dries Buytaert 2003-10-23 06:58:29 +00:00
parent 72ae2d3995
commit 162432a7eb
2 changed files with 2 additions and 2 deletions

View File

@ -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());
}
}
}

View File

@ -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());
}
}
}