diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 6f15e8fb1d..b6e6337a00 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -3453,7 +3453,7 @@ App::post('/v1/account/verification/phone') } $phone = $user->getAttribute('phone'); - if (!$phone) { + if (empty($phone)) { throw new Exception(Exception::USER_PHONE_NOT_FOUND); }