Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
7343c13e
Commit
7343c13e
authored
Jan 15, 2008
by
Richard Mansfield
Browse files
Don't send inactive email unless an inactivity time is set
parent
03ba33da
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/auth/lib.php
View file @
7343c13e
...
@@ -1136,6 +1136,7 @@ function auth_handle_account_expiries() {
...
@@ -1136,6 +1136,7 @@ function auth_handle_account_expiries() {
}
}
if
(
$expire
)
{
// Inactivity (lastlogin is too old)
// Inactivity (lastlogin is too old)
if
(
$users
=
get_records_sql_array
(
'SELECT u.id, u.username, u.firstname, u.lastname, u.preferredname, u.email, u.admin, u.staff
if
(
$users
=
get_records_sql_array
(
'SELECT u.id, u.username, u.firstname, u.lastname, u.preferredname, u.email, u.admin, u.staff
FROM {usr} u
FROM {usr} u
...
@@ -1160,6 +1161,7 @@ function auth_handle_account_expiries() {
...
@@ -1160,6 +1161,7 @@ function auth_handle_account_expiries() {
deactivate_user
(
$user
->
id
);
deactivate_user
(
$user
->
id
);
}
}
}
}
}
// Institution membership expiry
// Institution membership expiry
delete_records_sql
(
'DELETE FROM {usr_institution}
delete_records_sql
(
'DELETE FROM {usr_institution}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment