From 42ff3c24e1206bde71308bd90a50fd853eb05deb Mon Sep 17 00:00:00 2001 From: Julio Date: Tue, 28 Nov 2017 14:39:34 +0100 Subject: [PATCH] Fix PHP warnings --- main/lp/learnpath.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main/lp/learnpath.class.php b/main/lp/learnpath.class.php index 5a85bcdc2f..63170f9286 100755 --- a/main/lp/learnpath.class.php +++ b/main/lp/learnpath.class.php @@ -3022,6 +3022,7 @@ class learnpath 'type' => $this->items[$item_id]->get_type(), 'description' => $this->items[$item_id]->get_description(), 'path' => $this->items[$item_id]->get_path(), + 'parent' => $this->items[$item_id]->get_parent(), ); } if ($this->debug > 2) { @@ -3179,9 +3180,7 @@ class learnpath } $listParent[] = $subtree; } - if (!in_array($subtree['type'], $dirTypes) && - ((isset($subtree['parent']) && $subtree['parent'] == null) || !isset($subtree['parent'])) - ) { + if (!in_array($subtree['type'], $dirTypes) && $subtree['parent'] == null) { $classStatus = [ 'not attempted' => 'scorm_not_attempted', 'incomplete' => 'scorm_not_attempted',