MDL-32301: Allow instructor custom parameters for LTI tools

This commit is contained in:
Mark Nielsen
2013-05-07 21:59:25 +02:00
committed by Eloy Lafuente (stronk7)
parent 1a77c6c263
commit 0572012ef3
+1 -1
View File
@@ -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) {