Skip to content

Commit

Permalink
MDL-49606 webservices: Use correct item null value for files in summary
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyva authored and stronk7 committed Apr 2, 2015
1 parent 4dfef5e commit 1d3e954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public static function get_users_courses($userid) {
$enrolledusercount = $DB->count_records_sql($enrolledsql, $enrolledparams);

list($course->summary, $course->summaryformat) =
external_format_text($course->summary, $course->summaryformat, $context->id, 'course', 'summary', 0);
external_format_text($course->summary, $course->summaryformat, $context->id, 'course', 'summary', null);

$result[] = array('id' => $course->id, 'shortname' => $course->shortname, 'fullname' => $course->fullname,
'idnumber' => $course->idnumber, 'visible' => $course->visible, 'enrolledusercount' => $enrolledusercount,
Expand Down

0 comments on commit 1d3e954

Please sign in to comment.