MDL-61152 calendar: Remove usage of undefined variable
authorJun Pataleta <jun@moodle.com>
Thu, 4 Jan 2018 07:06:07 +0000 (15:06 +0800)
committerJun Pataleta <jun@moodle.com>
Tue, 23 Jan 2018 02:49:18 +0000 (10:49 +0800)
calendar/lib.php

index 6be5dc5..0879883 100644 (file)
@@ -808,9 +808,6 @@ class calendar_event {
                     \coursecat::get($properties->categoryid, MUST_EXIST, true);
                     // Course context.
                     $this->editorcontext = $this->get_context();
-                    // We have a course and are within the course context so we had
-                    // better use the courses max bytes value.
-                    $this->editoroptions['maxbytes'] = $course->maxbytes;
                 } else {
                     // If we get here we have a custom event type as used by some
                     // modules. In this case the event will have been added by