From: moodler Date: Sat, 16 Sep 2006 12:58:50 +0000 (+0000) Subject: Fixed a notice X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5ed3bf228af07188f18940cc4e1852eb1744a4d7;p=moodle.git Fixed a notice --- diff --git a/course/lib.php b/course/lib.php index 4ddd688f62..561e282595 100644 --- a/course/lib.php +++ b/course/lib.php @@ -356,7 +356,7 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per if ($course->id == SITEID) { $courses[0] = ''; - if ($ccc = get_courses('all', 'c.id ASC', 'c.id,c.shortname')) { + if ($ccc = get_courses('all', 'c.id ASC', 'c.id,c.shortname,c.visible')) { foreach ($ccc as $cc) { $courses[$cc->id] = $cc->shortname; }