backported fixes for warnings when exporting logs in excel format

This commit is contained in:
skodak
2007-01-08 22:24:16 +00:00
parent 642a7105e5
commit 33ca51fbdf
+4 -1
View File
@@ -532,7 +532,8 @@ function print_log_xls($course, $user, $date, $order='l.time DESC', $modname,
$modname, $modid, $modaction, $groupid)) {
return false;
}
$courses = array();
if ($course->id == SITEID) {
$courses[0] = '';
if ($ccc = get_courses('all', 'c.id ASC', 'c.id,c.shortname')) {
@@ -540,6 +541,8 @@ function print_log_xls($course, $user, $date, $order='l.time DESC', $modname,
$courses[$cc->id] = $cc->shortname;
}
}
} else {
$courses[$course->id] = $course->shortname;
}
$count=0;