diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-04-02 19:40:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-04-02 19:40:35 +0000 |
commit | 2fefff5914dc583ce7f81ed13a9a918069a34634 (patch) | |
tree | 732294458b06bf4d98aac939729dae6555b10334 /modules | |
parent | 59211a9cb5220e898ec360ae5131792bb12deda2 (diff) | |
download | brdo-2fefff5914dc583ce7f81ed13a9a918069a34634.tar.gz brdo-2fefff5914dc583ce7f81ed13a9a918069a34634.tar.bz2 |
- Patch #241629 by solotandem: the cron.php query left an extra row in the watchdog table due to a off-by-one error.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/dblog/dblog.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/dblog/dblog.module b/modules/dblog/dblog.module index 0dffb75db..04529d64a 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)); } /** |