From e646a2568ff7fa28e9d8e7a8ae7674438ecdeda0 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 10 Sep 2003 17:36:15 +0000 Subject: [PATCH] Fixed a little bug that sometimes shows with empty categories --- course/category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/category.php b/course/category.php index fa98ee0253..de4e2ec5a7 100644 --- a/course/category.php +++ b/course/category.php @@ -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) { -- 2.39.5