Minor - fix fatal error, php 7.1 installation

pull/2487/merge
Julio Montoya 7 years ago
parent 1c13c69f26
commit 7a2cc656fa
  1. 1
      .travis.yml
  2. 2
      composer.json
  3. 11
      main/inc/lib/webservices/Rest.php

@ -18,6 +18,7 @@ cache:
- $HOME/.composer/cache/files
php:
- 7.1
- 7.2
env:
global:

@ -108,7 +108,7 @@
"sunra/php-simple-html-dom-parser": "~1.5.0",
"sylius/resource-bundle": "~1.2",
"sylius/resource": "1.2.*",
"sylius/registry": "dev-master",
"sylius/registry": "1.2.*",
"friendsofsymfony/jsrouting-bundle": "~2.0",
"gedmo/doctrine-extensions": "~2.4",

@ -792,11 +792,12 @@ class Rest extends WebService
'title' => Security::remove_XSS($lpDetails['lp_name']),
'progress' => intval($progress),
'url' => api_get_path(WEB_CODE_PATH).'webservices/api/v2.php?'.http_build_query([
'hash' => $this->encodeParams([
'action' => 'course_learnpath',
'lp_id' => $lpId,
'course' => $this->course->getId(),
'session' => $sessionId,
'hash' => $this->encodeParams([
'action' => 'course_learnpath',
'lp_id' => $lpId,
'course' => $this->course->getId(),
'session' => $sessionId,
]),
]),
];
}

Loading…
Cancel
Save