Skip to content

Commit eaedb6b

Browse files
authored
Tracking: Include courses without category in number of courses stats page
1 parent 7c6c15d commit eaedb6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/statistics.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ public static function getCourseCategories()
449449
FROM $categoryTable
450450
ORDER BY tree_pos";
451451
$res = Database::query($sql);
452-
$categories = [];
452+
$categories = [null => get_lang('NoCategory')];
453453
while ($category = Database::fetch_object($res)) {
454454
$categories[$category->code] = $category->name;
455455
}

0 commit comments

Comments
 (0)