Commit 1383794b authored by Dan Poltawski's avatar Dan Poltawski
Browse files

Merge branch 'MDL-34255' of git://github.com/rwijaya/moodle

parents 48a7b182 4370d73d
......@@ -123,10 +123,10 @@ if ($eventid !== 0) {
$event = new stdClass();
$event->action = $action;
$event->course = $courseid;
$event->courseid = $courseid;
$event->timeduration = 0;
if ($formoptions->eventtypes->courses) {
if (!$issite) {
$event->courseid = $courseid;
$event->eventtype = 'course';
} else {
unset($formoptions->eventtypes->courses);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment