mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-12144 fixed creation of course category; merged from MOODLE_19_STABLE
This commit is contained in:
parent
b5d4efc60f
commit
29c660c4be
@ -629,7 +629,7 @@ function grade_get_categories_menu($courseid, $includenew=false) {
|
||||
$result = array();
|
||||
if (!$categories = grade_category::fetch_all(array('courseid'=>$courseid))) {
|
||||
//make sure course category exists
|
||||
if (!grade_category::fetch_course_category()) {
|
||||
if (!grade_category::fetch_course_category($courseid)) {
|
||||
debugging('Can not create course grade category!');
|
||||
return $result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user