summaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-12-02 13:53:43 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-12-02 13:53:43 -0500
commitc3b884e707ac9b60607f7e13188c2eba560f8881 (patch)
treeeb6c7689c59d89576ad90bab5fb72557b98a351c /actions/register.php
parent0bcfb2e6983fd487bd35132653e9a2bfb1ceebb1 (diff)
check for blank email when rejecting a dupe
darcs-hash:20081202185343-5ed1f-99c314aac9e59ddbddd59ee403d4111c3639aa98.gz
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);
}