Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'w14_MDL-38753_m23_ocicount' of git://github.com/skodak/…

…moodle into MOODLE_23_STABLE
  • Loading branch information...
commit 679620265af7d2ace4ad167c06cb3eed8ec745b3 2 parents 3848b9c + 0dec339
@stronk7 stronk7 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  enrol/externallib.php
View
2  enrol/externallib.php
@@ -87,7 +87,7 @@ public static function get_users_courses($userid) {
}
list($enrolledsqlselect, $enrolledparams) = get_enrolled_sql($context);
- $enrolledsql = "SELECT COUNT(*) FROM ($enrolledsqlselect) AS enrolleduserids";
+ $enrolledsql = "SELECT COUNT('x') FROM ($enrolledsqlselect) enrolleduserids";
$enrolledusercount = $DB->count_records_sql($enrolledsql, $enrolledparams);
$result[] = array('id'=>$course->id, 'shortname'=>$course->shortname, 'fullname'=>$course->fullname, 'idnumber'=>$course->idnumber,'visible'=>$course->visible, 'enrolledusercount'=>$enrolledusercount);
Please sign in to comment.
Something went wrong with that request. Please try again.