diff --git a/public/main/lp/learnpath.class.php b/public/main/lp/learnpath.class.php index 23ea7f082d..b524fddcb4 100644 --- a/public/main/lp/learnpath.class.php +++ b/public/main/lp/learnpath.class.php @@ -7839,7 +7839,7 @@ class learnpath // Get the lp_item_view with the highest view_count. $learnpathItemViewResult = $em - ->getRepository('ChamiloCourseBundle:CLpItemView') + ->getRepository(CLpItemView::class) ->findBy( ['item' => $rowItem->getIid(), 'view' => $lpViewId], ['viewCount' => 'DESC'],