summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2008-04-02 19:40:35 (GMT)
committerDries Buytaert2008-04-02 19:40:35 (GMT)
commit2fefff5914dc583ce7f81ed13a9a918069a34634 (patch)
tree732294458b06bf4d98aac939729dae6555b10334
parent59211a9cb5220e898ec360ae5131792bb12deda2 (diff)
- Patch #241629 by solotandem: the cron.php query left an extra row in the watchdog table due to a off-by-one error.
-rw-r--r--modules/dblog/dblog.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/dblog/dblog.module b/modules/dblog/dblog.module
index 0dffb75..04529d6 100644
--- a/modules/dblog/dblog.module
+++ b/modules/dblog/dblog.module
@@ -98,7 +98,7 @@ function dblog_init() {
function dblog_cron() {
// Cleanup the watchdog table
$max = db_result(db_query('SELECT MAX(wid) FROM {watchdog}'));
- db_query('DELETE FROM {watchdog} WHERE wid < %d', $max - variable_get('dblog_row_limit', 1000));
+ db_query('DELETE FROM {watchdog} WHERE wid <= %d', $max - variable_get('dblog_row_limit', 1000));
}
/**