Skip to content

Commit

Permalink
= 4.2.2.4 =
Browse files Browse the repository at this point in the history
~ Check variable.
  • Loading branch information
tungnxt89 committed Mar 25, 2023
1 parent 397ab14 commit 1a82141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/order/class-lp-order.php
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ public function get_user_data(): array {
if ( ! empty( $user_ids ) ) {
foreach ( $user_ids as $user_id ) {
$user = learn_press_get_user( $user_id );
if ( $user->is_exists() ) {
if ( $user && $user->is_exists() ) {
$data[ $user_id ] = $user->get_data(
array(
'id',
Expand Down

0 comments on commit 1a82141

Please sign in to comment.