diff --git a/Account/Account.php b/Account/Account.php index 2cba85883..5c53f8cc7 100644 --- a/Account/Account.php +++ b/Account/Account.php @@ -453,11 +453,11 @@ class Account implements ArrayableInterface, \JsonSerializable */ public function setEmail(string $email) : void { - if (!Email::isValid($email)) { + if ($email !== '' && !Email::isValid($email)) { throw new \InvalidArgumentException(); } - $this->email = mb_strtolower($email); + $this->email = \mb_strtolower($email); } /**