From 1b2f549358e6e220f3dcf90f171cc75a0136cc2e Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Mon, 8 Jul 2013 11:40:55 +0800 Subject: [PATCH] MDL-40536 course/externallib fix incorrect variable Fixes test_import_course_invalid_deletecontent_option() from the previous commit. --- course/externallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/externallib.php b/course/externallib.php index 75b400c0f04..b441966d2a8 100644 --- a/course/externallib.php +++ b/course/externallib.php @@ -1166,7 +1166,7 @@ class core_course_external extends external_api { ); 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. -- 2.43.0