Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7
-
Fix Version/s: None
-
Component/s: Enrolments
-
Labels:None
-
Environment:Informix
-
Affected Branches:MOODLE_17_STABLE
Description
In /moodle/enrol/database/enrol.php:
After setting ADODB_FETCH_ASSOC per MDL-7443, the $enroldb's reference of $rs->fields[0] is undefined (at least for the Informix driver), and database enrollment fails. Reference by association works as below.
Changed /moodle/enrol/database/enrol.php 1.27, line 87:
< $courselist[] = $rs->fields[0];
—
> $courselist[] = $rs->Fields($CFG->enrol_remotecoursefield);
Attachments
Issue Links
| This issue will help resolve: | ||||
| MDL-7712 | Fields not read from external database |
|
|
|
This is also broken with the postgres driver - Also the external authentication module is broken - line 108 and 110 of auth/db/lib.php - simply change to associative array index and the problem is resolved. One wonders how many other places this has been missed???