Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bugfix for unenrolling old users

  • Loading branch information...
commit ee23de06c1bebd91208a86c5c5d313d60867ce7e 1 parent fec6290
martin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  admin/cron.php
View
2  admin/cron.php
@@ -43,7 +43,7 @@
$cutofftime = $timenow - ($CFG->longtimenosee * 3600 * 24);
if ($users = get_records_sql("SELECT u.* FROM user u, user_students s
WHERE lastaccess > '0' AND
- lastaccess < '$cutofftime'
+ lastaccess < '$cutofftime' AND
u.id = s.user GROUP BY u.id")) {
foreach ($users as $user) {
if (delete_records("user_students", "user", $user->id)) {
Please sign in to comment.
Something went wrong with that request. Please try again.