Commit 3ea8fcae authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Hopefully fix the cron job properly now...

parent f9ea2cff
......@@ -674,7 +674,7 @@ function auth_handle_account_expiries() {
if ($users = get_records_sql_array('SELECT u.id
FROM ' . $prefix . 'usr
LEFT JOIN ' . $prefix . 'institution i ON (u.institution = i.name)
WHERE ' . db_format_tsfield('lastlogin') . ' < ? - i.defaultaccountinactiveexpire', array(time()))) {
WHERE ' . db_format_tsfield('lastlogin', false) . ' < ? - i.defaultaccountinactiveexpire', array(time()))) {
// Users have become inactive!
foreach ($users as $user) {
deactivate_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