Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion inc/user/abstract-lp-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down