diff --git a/mod/lti/locallib.php b/mod/lti/locallib.php index 37f2e32e82e..81c40fdbc54 100644 --- a/mod/lti/locallib.php +++ b/mod/lti/locallib.php @@ -285,7 +285,7 @@ function lti_build_request($instance, $typeconfig, $course) { if ($customstr) { $custom = lti_split_custom_parameters($customstr); } - if (!isset($typeconfig['allowinstructorcustom']) || $typeconfig['allowinstructorcustom'] == LTI_SETTING_NEVER) { + if (isset($typeconfig['allowinstructorcustom']) && $typeconfig['allowinstructorcustom'] == LTI_SETTING_NEVER) { $requestparams = array_merge($custom, $requestparams); } else { if ($instructorcustomstr) {