Tracking: Include courses without category in number of courses stats page

pull/5867/head
TheTomcat14 11 months ago committed by GitHub
parent 7c6c15d9dc
commit eaedb6bc29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      main/inc/lib/statistics.lib.php

@ -449,7 +449,7 @@ class Statistics
FROM $categoryTable
ORDER BY tree_pos";
$res = Database::query($sql);
$categories = [];
$categories = [null => get_lang('NoCategory')];
while ($category = Database::fetch_object($res)) {
$categories[$category->code] = $category->name;
}

Loading…
Cancel
Save