Skip to content

Commit

Permalink
Return a boolean per tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Dec 3, 2024
1 parent ab43eb3 commit 26331d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -1934,7 +1934,7 @@ public static function enable_provider_for_user( $user_id, $new_provider ) {

$enabled_providers[] = $new_provider;

return update_user_meta( $user_id, self::ENABLED_PROVIDERS_USER_META_KEY, $enabled_providers );
return (bool) update_user_meta( $user_id, self::ENABLED_PROVIDERS_USER_META_KEY, $enabled_providers );
}

/**
Expand Down

0 comments on commit 26331d3

Please sign in to comment.