Permalink
Browse files

Merge branch 'MDL-31556_m21' of git://github.com/rwijaya/moodle into …

…MOODLE_21_STABLE
  • Loading branch information...
2 parents a80daaf + 3ec7dc7 commit 06f405d6543d124b41d4b48ae7ae8c5276c987b3 Sam Hemelryk committed Feb 19, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/lesson/lib.php
View
@@ -659,7 +659,9 @@ function lesson_process_post_save(&$lesson) {
if ($lesson->available) {
$event->name = $lesson->name.' ('.get_string('lessonopens', 'lesson').')';
calendar_event::create(clone($event));
- } else if ($lesson->deadline) {
+ }
+
+ if ($lesson->deadline) {
$event->name = $lesson->name.' ('.get_string('lessoncloses', 'lesson').')';
$event->timestart = $lesson->deadline;
$event->eventtype = 'close';

0 comments on commit 06f405d

Please sign in to comment.