Commit f9a185ae authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review

Merge "Fix MySQL syntax error in cron task"

parents 4ef75593 7d8afff1
......@@ -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