summaryrefslogtreecommitdiff
path: root/modules/watchdog.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r--modules/watchdog.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/watchdog.module b/modules/watchdog.module
index 31e305242..89f2d4f70 100644
--- a/modules/watchdog.module
+++ b/modules/watchdog.module
@@ -74,7 +74,7 @@ function watchdog_perm() {
* Remove expired log messages.
*/
function watchdog_cron() {
- db_query('DELETE FROM {watchdog} WHERE '. time() .' - timestamp > '. variable_get('watchdog_clear', 604800));
+ db_query('DELETE FROM {watchdog} WHERE timestamp < %d', time() - variable_get('watchdog_clear', 604800));
}
/**