Fix PHP warnings

pull/3063/head
Julio 8 years ago
parent 41aba7db5b
commit 2f5a3b0994
  1. 4
      main/lp/learnpath.class.php

@ -3179,7 +3179,9 @@ class learnpath
}
$listParent[] = $subtree;
}
if (!in_array($subtree['type'], $dirTypes) && $subtree['parent'] == null ) {
if (!in_array($subtree['type'], $dirTypes) &&
((isset($subtree['parent']) && $subtree['parent'] == null) || !isset($subtree['parent']))
) {
$classStatus = [
'not attempted' => 'scorm_not_attempted',
'incomplete' => 'scorm_not_attempted',

Loading…
Cancel
Save