From cfdcf889ad27f9bfdbc68e3376deb90fc3a991d8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 22 Mar 2021 17:46:59 +1100 Subject: [PATCH] Small type check fix --- app/Transformers/UserTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Transformers/UserTransformer.php b/app/Transformers/UserTransformer.php index be572ec060..40939a89ee 100644 --- a/app/Transformers/UserTransformer.php +++ b/app/Transformers/UserTransformer.php @@ -61,7 +61,7 @@ class UserTransformer extends EntityTransformer 'last_confirmed_email_address' => (string) $user->last_confirmed_email_address ?: '', 'google_2fa_secret' => (bool) $user->google_2fa_secret, 'has_password' => (bool) $user->has_password, - 'oauth_user_token' => strlen($user->oauth_user_token) >=1 ? '***' : '', + 'oauth_user_token' => empty($user->oauth_user_token) ? '' : '***', ]; }