Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-7655

ADODB fetch association fails in Enrol/Database

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 1.7
    • Enrolments
    • None
    • Informix
    • MOODLE_17_STABLE

      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);

            martinlanghoff Martín Langhoff (Inactive)
            bluenovember Clinton Graham (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.