fix for MDL-9617, calendar performance issues

This commit is contained in:
toyomoyo 2007-05-04 05:24:55 +00:00
parent 3cb6bd2c35
commit 7a543c5cfb
2 changed files with 8 additions and 24 deletions

View file

@ -820,7 +820,9 @@ ORDER BY $sort");
}
}
if (!empty($USER->id) && ($USER->id == $userid)) {
// MDL-9671, my courses should only get cached when '*' is chosen as the field, otherwise courses
// can not be displayed properly as cached courses might contain missing course name etc
if (!empty($USER->id) && ($USER->id == $userid) && $fields=='*') {
$USER->mycourses[$doanything] = $mycourses;
}