diff --git a/src/um-cronjob-activation-email/src/Core.php b/src/um-cronjob-activation-email/src/Core.php index 18a9c88..8d65dfe 100644 --- a/src/um-cronjob-activation-email/src/Core.php +++ b/src/um-cronjob-activation-email/src/Core.php @@ -48,8 +48,7 @@ public function resend_activation_notify() { $users = get_users( $args ); foreach ( $users as $user_id ) { - $status = UM()->common()->users()->get_status( $user_id ); - if ( 'awaiting_email_confirmation' === $status ) { + if ( UM()->common()->users()->has_status( $user_id, 'awaiting_email_confirmation' ) ) { UM()->common()->users()->send_activation( $user_id, true ); } }