mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixing PHP 5 warning.
This commit is contained in:
parent
d3e27ac439
commit
8f71c6b20b
@ -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">';
|
||||
|
Loading…
x
Reference in New Issue
Block a user