From: moodler Date: Wed, 10 Sep 2003 17:36:15 +0000 (+0000) Subject: Fixed a little bug that sometimes shows with empty categories X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e646a2568ff7fa28e9d8e7a8ae7674438ecdeda0;p=moodle.git Fixed a little bug that sometimes shows with empty categories --- 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) {