summaryrefslogtreecommitdiffstats
path: root/settings/Controller
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-11-21 09:43:52 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-21 11:30:03 +0100
commit4a05aa8a02a2bf4403621530958ccc676689986d (patch)
tree89772bdb4ede09f5791e0051f7a17d58116e3b4f /settings/Controller
parent5aed91c3212bc0dbb2e19f6ec8cab4d91cbb34c0 (diff)
downloadnextcloud-server-4a05aa8a02a2bf4403621530958ccc676689986d.tar.gz
nextcloud-server-4a05aa8a02a2bf4403621530958ccc676689986d.zip
don't try to verify email address if no email address is set
Diffstat (limited to 'settings/Controller')
-rw-r--r--settings/Controller/UsersController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php
index 58cc59f9848..206f1872542 100644
--- a/settings/Controller/UsersController.php
+++ b/settings/Controller/UsersController.php
@@ -537,7 +537,7 @@ class UsersController extends Controller {
) {
- if(!$this->mailer->validateMailAddress($email)) {
+ if(!empty($email) && !$this->mailer->validateMailAddress($email)) {
return new DataResponse(
array(
'status' => 'error',