Commit 7d8afff1 authored by Aaron Wells's avatar Aaron Wells

Fix MySQL syntax error in cron task

Bug 1399311

Change-Id: I8d66b266d6de3dedb9069f852c5540a139ebb1e5
parent b5b899b1
......@@ -3758,7 +3758,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