Fix when the course has not gradebook - refs BT#9889 #TMI

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent 433999d04c
commit 7242a59d8d
  1. 8
      main/gradebook/lib/be/category.class.php

@ -2029,6 +2029,10 @@ class Category implements GradebookItem
false
);
if (empty($cats_course)) {
return false;
}
$category = $cats_course[0];
}
@ -2093,6 +2097,10 @@ class Category implements GradebookItem
false
);
if (empty($cats_course)) {
return 0;
}
$category = $cats_course[0];
$courseEvaluations = $category->get_evaluations($userId, true);

Loading…
Cancel
Save