mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Fixes for get_users_longtimenosee
This commit is contained in:
parent
938c039e52
commit
cc7c0592e4
1 changed files with 4 additions and 4 deletions
|
@ -337,10 +337,10 @@ function get_users_unconfirmed($cutofftime=2000000000) {
|
|||
*/
|
||||
function get_users_longtimenosee($cutofftime) {
|
||||
global $CFG;
|
||||
return get_records_sql("SELECT DISTINCT *
|
||||
FROM {$CFG->prefix}user
|
||||
WHERE lastaccess > '0'
|
||||
AND lastaccess < '$cutofftime' ");
|
||||
return get_records_sql("SELECT userid as id, courseid
|
||||
FROM {$CFG->prefix}user_lastaccess
|
||||
WHERE timeaccess > '0'
|
||||
AND timeaccess < '$cutofftime' ");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue