Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing bug 4524: typo

  • Loading branch information...
commit e2a03f553b650234e4dcb31f7f830d38ecc9e54e 1 parent 81ed299
mjollnir_ authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/datalib.php
View
2  lib/datalib.php
@@ -2227,7 +2227,7 @@ function get_my_courses($userid, $sort='visible DESC,sortorder ASC') {
$course[$student->course] = $student->course;
}
}
- if (count($courses) > 0) {
+ if (count($course) > 0) {
$courses = get_records_list('course', 'id', implode(',', $course));
foreach ($courses as $k => $c) {
if (empty($USER->admin) && (!$c->visible || !course_parent_visible($c))) {
Please sign in to comment.
Something went wrong with that request. Please try again.