]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a notice
authormoodler <moodler>
Sat, 16 Sep 2006 12:58:50 +0000 (12:58 +0000)
committermoodler <moodler>
Sat, 16 Sep 2006 12:58:50 +0000 (12:58 +0000)
course/lib.php

index 4ddd688f6221d19bca2bd6362023e12270effa69..561e28259557590cac427ae89597a10dbf02883f 100644 (file)
@@ -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;
             }