MDL-12144 fixed creation of course category; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-01-22 11:59:39 +00:00
parent b5d4efc60f
commit 29c660c4be

View File

@ -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;
}