From fecde6bdba0af4f9e85b1b65b1490ba827610db9 Mon Sep 17 00:00:00 2001 From: vaibhavagarwal220 Date: Sat, 24 Jun 2023 13:57:02 +0530 Subject: [PATCH] fixed null $name error for anonymous user --- 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 cc598a9e2b..78d65c669a 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -2306,7 +2306,7 @@ App::post('/v1/account/verification') ->setBody($body) ->setFrom($from) ->setRecipient($user->getAttribute('email')) - ->setName($user->getAttribute('name')) + ->setName($user->getAttribute('name') ?? '') ->trigger() ;