Commit 36345b8e authored by Aaron Wells's avatar Aaron Wells
Browse files

Fix MySQL syntax error in cron task

Bug 1399311

Change-Id: I8d66b266d6de3dedb9069f852c5540a139ebb1e5
parent f89e0976
......@@ -3487,7 +3487,7 @@ function cron_event_log_expire() {
delete_records_select(
'event_log',
'time < CURRENT_DATE - INTERVAL ' .
(is_postgres() ? "'" . $expiry . " seconds'" : $expiry . ' SECONDS')
(is_postgres() ? "'" . $expiry . " seconds'" : $expiry . ' SECOND')
);
}
......
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