Skip to content

Commit

Permalink
MDL-35557 enrol/database: use distinct call when getting list of cour…
Browse files Browse the repository at this point in the history
…ses that should be added.
  • Loading branch information
danmarsden authored and stronk7 committed Oct 2, 2012
1 parent bc7088d commit 2213098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/database/lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ public function sync_courses($verbose = false) {
if ($idnumber) { if ($idnumber) {
$sqlfields[] = $idnumber; $sqlfields[] = $idnumber;
} }
$sql = $this->db_get_sql($table, array(), $sqlfields); $sql = $this->db_get_sql($table, array(), $sqlfields, true);
$createcourses = array(); $createcourses = array();
if ($rs = $extdb->Execute($sql)) { if ($rs = $extdb->Execute($sql)) {
if (!$rs->EOF) { if (!$rs->EOF) {
Expand Down

0 comments on commit 2213098

Please sign in to comment.