Skip to content

Commit

Permalink
Merge branch 'w29_MDL-28360_m19_flatfile' of git://github.com/skodak/…
Browse files Browse the repository at this point in the history
…moodle into MOODLE_19_STABLE
  • Loading branch information
Sam Hemelryk committed Jul 25, 2011
2 parents 9dce25d + bd4f3fa commit fb50bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enrol/flatfile/enrol.php
Expand Up @@ -157,13 +157,13 @@ function cron() {
continue;
}

if (! $user = get_record("user", "idnumber", $fields[2]) ) {
if (! $user = get_record("user", "idnumber", addslashes($fields[2])) ) {
$this->log .= "Unknown user idnumber in field 3 - ignoring line\n";
continue;
}


if (! $course = get_record("course", "idnumber", $fields[3]) ) {
if (! $course = get_record("course", "idnumber", addslashes($fields[3])) ) {
$this->log .= "Unknown course idnumber in field 4 - ignoring line\n";
continue;
}
Expand Down

0 comments on commit fb50bf6

Please sign in to comment.