From: tjhunt Date: Mon, 15 Dec 2008 02:53:39 +0000 (+0000) Subject: Flatfile enrolment: MDL-11418 SQL error. Thanks to Patrick Pollet. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9e8c8017141e76c273f49429a96072be3a081580;p=moodle.git Flatfile enrolment: MDL-11418 SQL error. Thanks to Patrick Pollet. I don't know exactly how this works, but it looks like a good fix to me, so committing. --- diff --git a/enrol/flatfile/enrol.php b/enrol/flatfile/enrol.php index e8a86ee24c..e68230d50d 100644 --- a/enrol/flatfile/enrol.php +++ b/enrol/flatfile/enrol.php @@ -197,7 +197,7 @@ function get_access_icons($course) { if ($fields[1] == "student") { - if ($teachers = get_users_by_capability($context, 'moodle/course:update', 'u.*,ra.hidden', 'sortorder ASC')) { + if ($teachers = get_users_by_capability($context, 'moodle/course:update', 'u.*,ra.hidden', 'ra.sortorder ASC')) { foreach ($teachers as $u) { if (!$u->hidden || has_capability('moodle/role:viewhiddenassigns', $context)) { $teacher = $u;