Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed function get_course_participants --> get_course_users (naming…

… consistency)
  • Loading branch information...
commit 4c550bc01349287cfd06716474eb3eb0dd0c18e7 1 parent 4b23224
martin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/moodlelib.php
View
2  lib/moodlelib.php
@@ -960,7 +960,7 @@ function get_course_teachers($courseid, $sort="t.authority ASC") {
ORDER BY $sort");
}
-function get_course_participants($courseid, $sort="u.lastaccess DESC") {
+function get_course_users($courseid, $sort="u.lastaccess DESC") {
return get_records_sql("SELECT u.* FROM user u, user_students s, user_teachers t
WHERE (s.course = '$courseid' AND s.user = u.id) OR
(t.course = '$courseid' AND t.user = u.id)
Please sign in to comment.
Something went wrong with that request. Please try again.