Commit 8dc5889f authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Hopefully fix up wierd cron mistake

parent 6919fe38
......@@ -645,7 +645,7 @@ function auth_handle_account_expiries() {
// Actual expired users
if ($users = get_records_sql_array('SELECT u.id
FROM ' . $prefix . 'usr
WHERE ' . db_format_tsfield('expiry') . ' < ' . time())) {
WHERE ' . db_format_tsfield('expiry', false) . ' < ?', array(time()))) {
// Users have expired!
foreach ($users as $user) {
expire_user($user->id);
......
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