MDL-52697 calendar: Fixed notice for $name not being defined.
authorAdrian Greeve <adrian@moodle.com>
Fri, 8 Jan 2016 03:41:16 +0000 (11:41 +0800)
committerAdrian Greeve <adrian@moodle.com>
Fri, 8 Jan 2016 03:42:20 +0000 (11:42 +0800)
calendar/lib.php

index 0e2a196..184997e 100644 (file)
@@ -393,7 +393,7 @@ function calendar_get_mini($courses, $groups, $users, $calmonth = false, $calyea
                 // Show ical source if needed.
                 if (!empty($event->subscription) && $CFG->calendar_showicalsource) {
                     $a = new stdClass();
-                    $a->name = $name;
+                    $a->name = format_string($event->name, true);
                     $a->source = $event->subscription->name;
                     $name = get_string('namewithsource', 'calendar', $a);
                 } else {