Re-fixed bug 1488 hack

This commit is contained in:
moodler
2004-06-04 07:21:15 +00:00
parent 15a07d8b33
commit fc6a0c9fff
2 changed files with 6 additions and 4 deletions
+6
View File
@@ -279,6 +279,12 @@
$form->minutes = '';
}
}
if (!empty($form->courseid)) { // Fixes bug 1488
$course = get_record('course', 'id', $form->courseid);
} else {
$course = $site;
}
print_side_block_start(get_string('editevent', 'calendar'), array('class' => 'mycalendar'));
include('event_edit.html');
print_side_block_end();
-4
View File
@@ -1,7 +1,3 @@
<?php
// The following is a hack to fix bug 1488
$course = get_record('course', 'id', ($form->courseid) ? $form->courseid : $site->id);
?>
<form method="post" action="event.php" name="edit">
<table cellpadding=5>
<tr>