Merge branch 'MDL-63255-34' of git://github.com/vmdef/moodle into MDL-63255-34-test
This commit is contained in:
+2
-2
@@ -1475,7 +1475,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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1494,7 +1494,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