Permalink
Browse files

MDL-4279, calendar double message lesson opens lesson closes

  • Loading branch information...
1 parent 8e9fca4 commit eb923b5cc1da4d84b6082a54de75aa868da0e823 toyomoyo committed Nov 14, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/lesson/lib.php
View
@@ -85,7 +85,7 @@ function lesson_add_instance($lesson) {
$event->timeduration = ($lesson->deadline - $lesson->available);
if ($event->timeduration > LESSON_MAX_EVENT_LENGTH) { /// Long durations create two events
- $event2 = $event;
+ $event2 = clone($event);
$event->name .= ' ('.get_string('lessonopens', 'lesson').')';
$event->timeduration = 0;
@@ -178,7 +178,7 @@ function lesson_update_instance($lesson) {
$event->timeduration = ($lesson->deadline - $lesson->available);
if ($event->timeduration > LESSON_MAX_EVENT_LENGTH) { /// Long durations create two events
- $event2 = $event;
+ $event2 = clone($event);
$event->name .= ' ('.get_string('lessonopens', 'lesson').')';
$event->timeduration = 0;

0 comments on commit eb923b5

Please sign in to comment.