Skip to content
Browse files

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

…ses that should be added.
  • Loading branch information...
1 parent bc7088d commit 221309802aacaf6f0928519fd38e4f83576cb665 @danmarsden danmarsden committed with stronk7 Sep 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/database/lib.php
View
2 enrol/database/lib.php
@@ -592,7 +592,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 2213098

Please sign in to comment.
Something went wrong with that request. Please try again.