diff --git a/inc/user/abstract-lp-user.php b/inc/user/abstract-lp-user.php index 7ddce53e6..5f45845bb 100644 --- a/inc/user/abstract-lp-user.php +++ b/inc/user/abstract-lp-user.php @@ -126,7 +126,10 @@ public function get_course_data( int $course_id = 0 ) { * Todo: some themes still not check false, so still use below code.\ * @editor tungnx 4.1.6.9 */ - $object_course_data = new LP_User_Item_Course( $course_id ); + $object_course_data = new LP_User_Item_Course( array( + 'item_id' => $course_id, + 'user_id' => $this->get_id(), + ) ); } } catch ( Throwable $e ) { $object_course_data = false;