Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit b54a4b0d76092dd64a131bc2f8aa31d5d49fd7c1 1 parent 329aced
tjhunt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  enrol/flatfile/enrol.php
View
2  enrol/flatfile/enrol.php
@@ -238,7 +238,7 @@ function cron() {
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;
Please sign in to comment.
Something went wrong with that request. Please try again.