mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 00:20:37 +01:00
Merge branch 'MDL-63255-master' of git://github.com/vmdef/moodle
This commit is contained in:
commit
4941d2d97d
@ -1505,7 +1505,7 @@ function user_get_course_lastaccess_sql($accesssince = null, $tableprefix = 'ul'
|
||||
if ($accesssince == -1) { // Never.
|
||||
return $tableprefix . '.timeaccess = 0';
|
||||
} else {
|
||||
return $tableprefix . '.timeaccess != 0 AND ul.timeaccess < ' . $accesssince;
|
||||
return $tableprefix . '.timeaccess != 0 AND ' . $tableprefix . '.timeaccess < ' . $accesssince;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1524,7 +1524,7 @@ function user_get_user_lastaccess_sql($accesssince = null, $tableprefix = 'u') {
|
||||
if ($accesssince == -1) { // Never.
|
||||
return $tableprefix . '.lastaccess = 0';
|
||||
} else {
|
||||
return $tableprefix . '.lastaccess != 0 AND u.lastaccess < ' . $accesssince;
|
||||
return $tableprefix . '.lastaccess != 0 AND ' . $tableprefix . '.lastaccess < ' . $accesssince;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user