From 5168b15b04c3dd83811de9eb2fa8d0c7e967d75e Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 21 Nov 2016 09:43:52 +0100 Subject: [PATCH] don't try to verify email address if no email address is set --- settings/Controller/UsersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php index 58cc59f9848fe..206f187254232 100644 --- a/settings/Controller/UsersController.php +++ b/settings/Controller/UsersController.php @@ -537,7 +537,7 @@ public function setUserSettings($avatarScope, ) { - if(!$this->mailer->validateMailAddress($email)) { + if(!empty($email) && !$this->mailer->validateMailAddress($email)) { return new DataResponse( array( 'status' => 'error',