Removing leftovers from some debugging session.

This commit is contained in:
defacer
2005-04-20 21:17:39 +00:00
parent 95a1810ed9
commit e93f551b3f
-4
View File
@@ -982,8 +982,6 @@ function calendar_set_referring_course($courseid) {
function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NULL, $groupeventsfrom = NULL, $ignorefilters = false) {
global $SESSION, $USER, $CFG;
//$GLOBALS['db']->debug = true;
// Insidious bug-wannabe: setting $SESSION->cal_courses_shown to $course->id would cause
// the code to function incorrectly UNLESS we convert it to an integer. One case where
// PHP's loose type system works against us.
@@ -1071,8 +1069,6 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU
else {
$group = false;
}
$GLOBALS['db']->debug = false;
}
function calendar_edit_event_allowed($event) {