Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'MDL-51969-master' of https://github.com/dmitriim/moodle
  • Loading branch information
David Monllao committed Oct 9, 2018
2 parents bbb2141 + f9ec249 commit b52e22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/lti/classes/local/ltiservice/resource_base.php
Expand Up @@ -304,7 +304,7 @@ protected function parse_template() {

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++) {
Expand Down

0 comments on commit b52e22d

Please sign in to comment.