diff --git a/main/lp/learnpath.class.php b/main/lp/learnpath.class.php index 9524994c75..1e0b04182e 100755 --- a/main/lp/learnpath.class.php +++ b/main/lp/learnpath.class.php @@ -11161,9 +11161,9 @@ EOD; $lpItemId = []; $typeListNotToVerify = self::getChapterTypes(); - foreach ($this->items as $item) { - if (!in_array($item->get_type(), $typeListNotToVerify)) { - $lpItemId[] = $item->get_id(); + foreach ($this->get_toc() as $item) { + if (!in_array($item['type'], $typeListNotToVerify)) { + $lpItemId[] = $item['id']; } }