Fixing PHP 5 warning.

This commit is contained in:
defacer 2005-04-21 13:44:50 +00:00
parent d3e27ac439
commit 8f71c6b20b

View File

@ -424,12 +424,12 @@
if($eventtype == 'select') {
$defaultcourse = $SESSION->cal_course_referer;
if(isteacheredit($defaultcourse, $USER->id)) {
$defaultgroup = 0;
$defaultgroup = $groupid = 0;
}
else {
$defaultgroup = user_group($defaultcourse, $USER->id);
$groupid = optional_param('groupid', $defaultgroup->id, PARAM_INT);
}
$groupid = optional_param('groupid', $defaultgroup->id, PARAM_INT);
$courseid = optional_param('courseid', $defaultcourse, PARAM_INT);
echo '<h2>'.get_string('eventkind', 'calendar').':</h2>';
echo '<div id="selecteventtype">';