Permalink
Browse files

MDL-32301: Allow instructor custom parameters for LTI tools

  • Loading branch information...
1 parent 95190fd commit e91be4ffa877f3e954211b4cb7016d8314d9c76d @mrmark mrmark committed 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 e91be4f

Please sign in to comment.