Skip to content
Browse files

MDL-23667 reverting my previous wrong patch and using original patch …

…by Matt Clarkson, sorry for the trouble
  • Loading branch information...
1 parent f8d17f7 commit ddff72647ad91450eb0330ce0325c5053fa29f1f @skodak skodak committed Aug 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/database/enrol.php
View
2 enrol/database/enrol.php
@@ -231,7 +231,7 @@ function sync_enrolments($role = null) {
$course = false;
$course = get_record( 'course',
$CFG->enrol_localcoursefield,
- $enroldb->quote($extcourse) );
+ addslashes($extcourse) );
if (!is_object($course)) {
if (empty($CFG->enrol_db_autocreate)) { // autocreation not allowed

0 comments on commit ddff726

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