From: moodler Date: Wed, 15 Dec 2004 13:33:40 +0000 (+0000) Subject: Merged course listing fix from stable X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0f06e85abb41498ca05fdb329d0d15a322db18b6;p=moodle.git Merged course listing fix from stable --- diff --git a/course/category.php b/course/category.php index 86cfeb5f4b..0ec92c7bcd 100644 --- a/course/category.php +++ b/course/category.php @@ -236,7 +236,7 @@ unset($course); // To avoid unwanted language effects later $courses = get_courses_page($category->id, 'c.sortorder ASC', - 'c.id,c.sortorder,c.shortname,c.fullname,c.summary,c.visible,c.teacher', + 'c.id,c.sortorder,c.shortname,c.fullname,c.summary,c.visible,c.teacher,c.guest,c.password', $totalcount, $page*$perpage, $perpage); $numcourses = count($courses); @@ -357,17 +357,17 @@ echo ""; } else { echo ""; - if ($acourse->guest ) { + if (!empty($acourse->guest)) { echo ''; } - if ($acourse->password) { + if (!empty($acourse->password)) { echo ''; } - if ($acourse->summary) { + if (!empty($acourse->summary)) { link_to_popup_window ("/course/info.php?id=$acourse->id", "courseinfo", 'info', 400, 500, $strsummary);