Skip to content

Commit

Permalink
MDL-32919 missing default for the last params cause invalid parameter…
Browse files Browse the repository at this point in the history
… exception with REST
  • Loading branch information
mouneyrac authored and jleyva committed Jun 4, 2012
1 parent 8430d87 commit b5bd42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ public static function import_course_parameters() {
* @return null
* @since Moodle 2.3
*/
public static function import_course($importfrom, $importto, $deletecontent, $options) {
public static function import_course($importfrom, $importto, $deletecontent = 0, $options = array()) {
global $CFG, $USER, $DB;
require_once($CFG->dirroot . '/backup/util/includes/backup_includes.php');
require_once($CFG->dirroot . '/backup/util/includes/restore_includes.php');
Expand Down

0 comments on commit b5bd42e

Please sign in to comment.