Fixed a little bug that sometimes shows with empty categories

This commit is contained in:
moodler 2003-09-10 17:36:15 +00:00
parent 5fe1ba3a79
commit e646a2568f

View File

@ -216,7 +216,7 @@
$courses = get_courses_page($category->id, "c.sortorder ASC", "c.*", $totalcount, $page*$perpage, $perpage);
$numcourses = count($courses);
if ($numcourses == 0) {
if (!$courses) {
print_heading(get_string("nocoursesyet"));
} else if ($numcourses <= COURSE_MAX_SUMMARIES_PER_PAGE and !$creatorediting) {