Permalink
Browse files

MDL-32301: Allow instructor custom parameters for LTI tools

  • Loading branch information...
1 parent 1a77c6c commit 0572012ef3624fd3a64bd9e39a07b26c0dd6dc44 @mrmark mrmark committed with stronk7 Mar 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/lti/locallib.php
View
@@ -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) {

0 comments on commit 0572012

Please sign in to comment.