Permalink
Browse files

Fixing bug 4524: typo

  • Loading branch information...
mjollnir_
mjollnir_ committed Dec 30, 2005
1 parent 81ed299 commit e2a03f553b650234e4dcb31f7f830d38ecc9e54e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/datalib.php
View
@@ -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))) {

0 comments on commit e2a03f5

Please sign in to comment.