Permalink
Browse files

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

…ses that should be added.
  • Loading branch information...
1 parent 5d6285c commit d7e8f95b749796fe7904dda8de76de6dd1322856 @danmarsden danmarsden committed Sep 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/database/lib.php
View
@@ -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) {

0 comments on commit d7e8f95

Please sign in to comment.