From ef0688bf35ed214e555e7dddd6996ecbdec2c39d Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Wed, 3 Oct 2018 10:13:02 +1000 Subject: [PATCH] MDL-51969 mod_lti: Fixed missing tool proxy GUID --- mod/lti/classes/local/ltiservice/resource_base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/lti/classes/local/ltiservice/resource_base.php b/mod/lti/classes/local/ltiservice/resource_base.php index 4d617fe1f21..60c7327e03a 100644 --- a/mod/lti/classes/local/ltiservice/resource_base.php +++ b/mod/lti/classes/local/ltiservice/resource_base.php @@ -255,7 +255,7 @@ abstract class resource_base { if (empty($this->params)) { $this->params = array(); - if (isset($_SERVER['PATH_INFO'])) { + if (isset($_SERVER['PATH_INFO']) && !empty($_SERVER['PATH_INFO'])) { $path = explode('/', $_SERVER['PATH_INFO']); $parts = explode('/', $this->get_template()); for ($i = 0; $i < count($parts); $i++) {