Browse Source

LTSDEV: Adjust SQL in get_users() for Oracle compatibility

MOODLE_23_STABLE
Seth Hobson 13 years ago
committed by Fred Woolard
parent
commit
0858da36e6
  1. 2
      locallib.php

2
locallib.php

@ -849,7 +849,7 @@ class attforblock {
WHERE ue.userid $usql WHERE ue.userid $usql
AND e.status = :estatus AND e.status = :estatus
AND e.courseid = :courseid AND e.courseid = :courseid
GROUP BY ue.userid, ue.status, ue.timestart, ue.timeend;"; GROUP BY ue.userid, ue.status, ue.timestart, ue.timeend";
$params = array_merge($uparams, array('estatus'=>ENROL_INSTANCE_ENABLED, 'courseid'=>$this->course->id)); $params = array_merge($uparams, array('estatus'=>ENROL_INSTANCE_ENABLED, 'courseid'=>$this->course->id));
$enrolmentsparams = $DB->get_records_sql($sql, $params); $enrolmentsparams = $DB->get_records_sql($sql, $params);

Loading…
Cancel
Save