mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
removed unnecessary calls to get_site()
This commit is contained in:
parent
afd97e8449
commit
222ac91bc9
26 changed files with 219 additions and 415 deletions
|
@ -387,8 +387,7 @@ function attendance_get_course_students($courseid, $sort="u.lastaccess DESC") {
|
|||
|
||||
// make sure it works on the site course
|
||||
$select = "s.course = '$courseid' AND";
|
||||
$site = get_site();
|
||||
if ($courseid == $site->id) {
|
||||
if ($courseid == SITEID) {
|
||||
$select = '';
|
||||
}
|
||||
return get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.maildisplay, u.mailformat,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue