Skip to content
Permalink
Browse files
Merge branch 'MDL-56253-33' of https://github.com/lucaboesch/moodle i…
…nto MOODLE_33_STABLE
  • Loading branch information
David Monllao committed Nov 20, 2017
2 parents 8156736 + 0cca93b commit 5fe7cae9270ef2ec51218c0ce9c7b42e8e3f250e
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 5fe7cae

Please sign in to comment.