From 77e9d3cf4c076601e9e813641889771dcacac52b Mon Sep 17 00:00:00 2001 From: defacer Date: Wed, 1 Dec 2004 21:49:23 +0000 Subject: [PATCH] Minor code style changes --- calendar/preferences.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/calendar/preferences.php b/calendar/preferences.php index 3513c6457b1..dc082ce54e8 100644 --- a/calendar/preferences.php +++ b/calendar/preferences.php @@ -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; }