mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Minor code style changes
This commit is contained in:
parent
070e261647
commit
77e9d3cf4c
@ -5,7 +5,7 @@
|
||||
require_once($CFG->dirroot.'/calendar/lib.php');
|
||||
|
||||
if (isset($SESSION->cal_course_referer)) {
|
||||
if (! $course = get_record("course", "id", $SESSION->cal_course_referer)) {
|
||||
if (! $course = get_record('course', 'id', $SESSION->cal_course_referer)) {
|
||||
$course = get_site();
|
||||
}
|
||||
}
|
||||
@ -34,18 +34,18 @@
|
||||
set_user_preference('calendar_startwday', $value);
|
||||
break;
|
||||
case 'maxevents':
|
||||
if ((int)$value >= 1) {
|
||||
if (intval($value) >= 1) {
|
||||
set_user_preference('calendar_maxevents', $value);
|
||||
}
|
||||
break;
|
||||
case 'lookahead':
|
||||
if ((int)$value >= 1) {
|
||||
if (intval($value) >= 1) {
|
||||
set_user_preference('calendar_lookahead', $value);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
redirect("view.php", get_string("changessaved"), 1);
|
||||
redirect('view.php', get_string('changessaved'), 1);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user