Skip to content

Commit

Permalink
MDL-56573 enrol_lti: Non-null default for tool_consumer_instance_name
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Oct 28, 2016
1 parent 577bd70 commit 59eb636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/lti/tool.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
$consumer->ltiVersion = \IMSGlobal\LTI\ToolProvider\ToolProvider::LTI_VERSION1;
// For LTIv1, set the tool secret as the consumer secret.
$consumer->secret = $tool->secret;
$consumer->name = optional_param('tool_consumer_instance_name', null, PARAM_TEXT);
$consumer->name = optional_param('tool_consumer_instance_name', '', PARAM_TEXT);
$consumer->consumerName = $consumer->name;
$consumer->consumerGuid = optional_param('tool_consumer_instance_guid', null, PARAM_TEXT);
$consumer->consumerVersion = optional_param('tool_consumer_info_version', null, PARAM_TEXT);
Expand Down

0 comments on commit 59eb636

Please sign in to comment.