Skip to content

Commit

Permalink
Don't need to select course.* in rebuild course cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mjollnir_ committed Nov 22, 2004
1 parent fdbadd5 commit a80a592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/lib.php
Expand Up @@ -1021,7 +1021,7 @@ function rebuild_course_cache($courseid=0) {
$select = "";
}

if ($courses = get_records_select("course", $select)) {
if ($courses = get_records_select("course", $select,'','id,fullname')) {
foreach ($courses as $course) {
$modinfo = serialize(get_array_of_activities($course->id));
if (!set_field("course", "modinfo", $modinfo, "id", $course->id)) {
Expand Down

0 comments on commit a80a592

Please sign in to comment.