mirror of
https://github.com/moodle/moodle.git
synced 2025-05-04 15:27:34 +02:00
Fixed a little bug that sometimes shows with empty categories
This commit is contained in:
parent
5fe1ba3a79
commit
e646a2568f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user