mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
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:
parent
1e15c0fdad
commit
b5eb752394
1 changed files with 1 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue