Skip to content

Commit

Permalink
MDL-40536 course/externallib fix incorrect variable
Browse files Browse the repository at this point in the history
Fixes test_import_course_invalid_deletecontent_option() from the
previous commit.
  • Loading branch information
danpoltawski committed Jul 12, 2013
1 parent 77e41db commit ac47025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/externallib.php
Expand Up @@ -1166,7 +1166,7 @@ public static function import_course($importfrom, $importto, $deletecontent = 0,
);

if ($params['deletecontent'] !== 0 and $params['deletecontent'] !== 1) {
throw new moodle_exception('invalidextparam', 'webservice', '', $option['deletecontent']);
throw new moodle_exception('invalidextparam', 'webservice', '', $params['deletecontent']);
}

// Context validation.
Expand Down

0 comments on commit ac47025

Please sign in to comment.