Ver Fonte

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

Angel Fernando Quiroz Campos há 6 anos atrás
pai
commit
40f2d83175
1 ficheiros alterados com 4 adições e 0 exclusões
  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);