|
|
|
@ -3022,6 +3022,7 @@ class learnpath |
|
|
|
'type' => $this->items[$item_id]->get_type(), |
|
|
|
'type' => $this->items[$item_id]->get_type(), |
|
|
|
'description' => $this->items[$item_id]->get_description(), |
|
|
|
'description' => $this->items[$item_id]->get_description(), |
|
|
|
'path' => $this->items[$item_id]->get_path(), |
|
|
|
'path' => $this->items[$item_id]->get_path(), |
|
|
|
|
|
|
|
'parent' => $this->items[$item_id]->get_parent(), |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
if ($this->debug > 2) { |
|
|
|
if ($this->debug > 2) { |
|
|
|
@ -3179,9 +3180,7 @@ class learnpath |
|
|
|
} |
|
|
|
} |
|
|
|
$listParent[] = $subtree; |
|
|
|
$listParent[] = $subtree; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!in_array($subtree['type'], $dirTypes) && |
|
|
|
if (!in_array($subtree['type'], $dirTypes) && $subtree['parent'] == null) { |
|
|
|
((isset($subtree['parent']) && $subtree['parent'] == null) || !isset($subtree['parent'])) |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
$classStatus = [ |
|
|
|
$classStatus = [ |
|
|
|
'not attempted' => 'scorm_not_attempted', |
|
|
|
'not attempted' => 'scorm_not_attempted', |
|
|
|
'incomplete' => 'scorm_not_attempted', |
|
|
|
'incomplete' => 'scorm_not_attempted', |
|
|
|
|