Commit 92090fbf authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Potential fix to cronjob madness

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