Merge branch 'MDL-63255-34' of git://github.com/vmdef/moodle into MDL-63255-34-test

This commit is contained in:
Víctor Déniz Falcón
2018-09-03 07:00:33 +01:00
+2 -2
View File
@@ -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;
}
}