MDL-32301: Allow instructor custom parameters for LTI tools

This commit is contained in:
Mark Nielsen 2013-03-12 09:36:25 -07:00
parent 95190fda69
commit e91be4ffa8

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) {