Permalink
Browse files

MDL-33624 externalib: fix two invalidcourseid uses with placeholder

A placeholder no longer exists.
  • Loading branch information...
danpoltawski committed Jul 18, 2012
1 parent d7e0d2c commit 0b9a3d7ac1cd473ea497f86d96b05794c2b86679
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/externallib.php
View
@@ -945,11 +945,11 @@ public static function import_course($importfrom, $importto, $deletecontent = 0,
// Context validation.
if (! ($importfrom = $DB->get_record('course', array('id'=>$params['importfrom'])))) {
throw new moodle_exception('invalidcourseid', 'error', '', $params['importfrom']);
throw new moodle_exception('invalidcourseid', 'error');
}
if (! ($importto = $DB->get_record('course', array('id'=>$params['importto'])))) {
throw new moodle_exception('invalidcourseid', 'error', '', $params['importto']);
throw new moodle_exception('invalidcourseid', 'error');
}
$importfromcontext = context_course::instance($importfrom->id);

0 comments on commit 0b9a3d7

Please sign in to comment.