From e91be4ffa877f3e954211b4cb7016d8314d9c76d Mon Sep 17 00:00:00 2001 From: Mark Nielsen Date: Tue, 12 Mar 2013 09:36:25 -0700 Subject: [PATCH] MDL-32301: Allow instructor custom parameters for LTI tools --- mod/lti/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {