Skip to content
Snippets Groups Projects
Commit 2fefff59 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- 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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment