From b5fc9d5789e0a5d65b4dbef0a2d58f53556ceb24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 3 Jul 2024 09:35:56 +0000 Subject: [PATCH] PR review changes --- app/controllers/api/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }