Permalink
Browse files

Merge branch 'MDL-56253-34' of https://github.com/lucaboesch/moodle i…

…nto MOODLE_34_STABLE
  • Loading branch information...
dmonllao committed Nov 20, 2017
2 parents d692104 + a96ef27 commit fe709d665dbe11961586623ee0e36de27b10780a
Showing with 2 additions and 2 deletions.
  1. +2 −2 grade/grading/lib.php
@@ -185,8 +185,8 @@ public function get_component_title() {
} else if ($this->get_context()->contextlevel >= CONTEXT_COURSE) {
list($context, $course, $cm) = get_context_info_array($this->get_context()->id);
if (strval($cm->name) !== '') {
$title = $cm->name;
if ($cm && strval($cm->name) !== '') {
$title = format_string($cm->name, true, array('context' => $context));
} else {
debugging('Gradable areas are currently supported at the course module level only', DEBUG_DEVELOPER);
$title = $this->get_component();

0 comments on commit fe709d6

Please sign in to comment.