Commit 2fefff59 authored by Dries's avatar Dries

- Patch #241629 by solotandem: the cron.php query left an extra row in the...

- Patch #241629 by solotandem: the cron.php query left an extra row in the watchdog table due to a off-by-one error.
parent 59211a9c
......@@ -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));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment