瀏覽代碼

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

Angel Fernando Quiroz Campos 6 年之前
父節點
當前提交
40f2d83175
共有 1 個文件被更改,包括 4 次插入0 次删除
  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()
     {
+        if (empty($this->customParams)) {
+            return [];
+        }
+
         $params = [];
         $strings = explode("\n", $this->customParams);