First real test of the new rs_fetchXXX() functions. Applying it

to get_my_courses(). MDL-8134

Merged from MOODLE_17_STABLE
This commit is contained in:
stronk7 2007-01-29 00:17:25 +00:00
parent 1e15c0fdad
commit b5eb752394

View file

@ -747,9 +747,7 @@ ORDER BY $sort");
}
if ($rs && $rs->RecordCount() > 0) {
while (!$rs->EOF) {
$course = (object)$rs->fields;
while ($course = rs_fetch_next_record($rs)) {
if ($course->id != SITEID) {
// users with moodle/course:view are considered course participants
// the course needs to be visible, or user must have moodle/course:viewhiddencourses
@ -769,8 +767,6 @@ ORDER BY $sort");
}
}
}
$rs->MoveNext();
}
}