Merge branch 'MDL-35257-22' of git://github.com/danpoltawski/moodle into MOODLE_22_STABLE
This commit is contained in:
@@ -1762,6 +1762,11 @@ function user_accesstime_log($courseid=0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isguestuser()) {
|
||||
// Do not update guest access times/ips for performance.
|
||||
return;
|
||||
}
|
||||
|
||||
if (empty($courseid)) {
|
||||
$courseid = SITEID;
|
||||
}
|
||||
|
||||
@@ -3201,6 +3201,11 @@ function get_user_key($script, $userid, $instance=null, $iprestriction=null, $va
|
||||
function update_user_login_times() {
|
||||
global $USER, $DB;
|
||||
|
||||
if (isguestuser()) {
|
||||
// Do not update guest access times/ips for performance.
|
||||
return true;
|
||||
}
|
||||
|
||||
$now = time();
|
||||
|
||||
$user = new stdClass();
|
||||
|
||||
Reference in New Issue
Block a user