Merge branch 'MDL-63255-35' of git://github.com/vmdef/moodle into MOODLE_35_STABLE
This commit is contained in:
+2
-2
@@ -1478,7 +1478,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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1497,7 +1497,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user