summaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/register.php')
-rw-r--r--actions/register.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/actions/register.php b/actions/register.php
index 1d7e71dfb..6acbde1bd 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -142,6 +142,9 @@ class RegisterAction extends Action {
function email_exists($email) {
$email = common_canonical_email($email);
+ if (!$email || strlen($email) == 0) {
+ return false;
+ }
$user = User::staticGet('email', $email);
return ($user !== false);
}