Minor - fix missing course id

pull/3556/head
Julio Montoya 6 years ago
parent 67981c2aa9
commit e918999bb9
  1. 6
      main/lp/learnpathItem.class.php

@ -1556,6 +1556,12 @@ class learnpathItem
) {
$time = null;
$courseId = $this->courseId;
if (empty($courseId)) {
$courseId = api_get_course_int_id();
}
$courseId = (int) $courseId;
if (!isset($given_time)) {
if (self::DEBUG > 2) {
error_log(

Loading…
Cancel
Save