Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-35557 enrol/database: use distinct call when getting list of cour…

…ses that should be added.
  • Loading branch information...
commit d7e8f95b749796fe7904dda8de76de6dd1322856 1 parent 5d6285c
@danmarsden danmarsden authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  enrol/database/lib.php
View
2  enrol/database/lib.php
@@ -642,7 +642,7 @@ public function sync_courses($verbose = false) {
if ($idnumber) {
$sqlfields[] = $idnumber;
}
- $sql = $this->db_get_sql($table, array(), $sqlfields);
+ $sql = $this->db_get_sql($table, array(), $sqlfields, true);
$createcourses = array();
if ($rs = $extdb->Execute($sql)) {
if (!$rs->EOF) {
Please sign in to comment.
Something went wrong with that request. Please try again.