From 14a0f148fd137ff95b35d2daea04736becacaab4 Mon Sep 17 00:00:00 2001 From: Noy Cohen Date: Thu, 2 Jul 2020 16:45:03 +0300 Subject: [PATCH] KMS-20594 check if submission is set in ltirequest object --- local/kaltura/locallib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/local/kaltura/locallib.php b/local/kaltura/locallib.php index f934f40e..7c8a7546 100644 --- a/local/kaltura/locallib.php +++ b/local/kaltura/locallib.php @@ -390,7 +390,10 @@ function local_kaltura_request_lti_launch($ltirequest, $withblocks = true, $edit $requestparams['custom_publishdata'] = local_kaltura_get_kaf_publishing_data(); $requestparams['custom_publishdata_encoded'] = '1'; $requestparams['custom_moodle_plugin_version'] = local_kaltura_get_config()->version; - $requestparams['assignment'] = $ltirequest['submission']; + + if (isset($ltirequest['submission'])) { + $requestparams['assignment'] = $ltirequest['submission']; + } // Specific settings for video presentation requests. if (isset($ltirequest['custom_disable_add_new'])) {