Jelajahi Sumber

LTI fix launch with empty custom params - refs BT#13469

Angel Fernando Quiroz Campos 6 tahun lalu
induk
melakukan
40f2d83175
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      plugin/ims_lti/Entity/ImsLtiTool.php

+ 4 - 0
plugin/ims_lti/Entity/ImsLtiTool.php

@@ -254,6 +254,10 @@ class ImsLtiTool
      */
      */
     public function parseCustomParams()
     public function parseCustomParams()
     {
     {
+        if (empty($this->customParams)) {
+            return [];
+        }
+
         $params = [];
         $params = [];
         $strings = explode("\n", $this->customParams);
         $strings = explode("\n", $this->customParams);