Permalink
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...
1 parent 329aced commit b54a4b0d76092dd64a131bc2f8aa31d5d49fd7c1 tjhunt committed Dec 15, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/flatfile/enrol.php
View
@@ -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;

0 comments on commit b54a4b0

Please sign in to comment.