forked from GNUsocial/gnu-social
check for blank email when rejecting a dupe
darcs-hash:20081202185343-5ed1f-99c314aac9e59ddbddd59ee403d4111c3639aa98.gz
This commit is contained in:
parent
0bcfb2e698
commit
c3b884e707
@ -142,6 +142,9 @@ class RegisterAction extends Action {
|
|||||||
|
|
||||||
function email_exists($email) {
|
function email_exists($email) {
|
||||||
$email = common_canonical_email($email);
|
$email = common_canonical_email($email);
|
||||||
|
if (!$email || strlen($email) == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$user = User::staticGet('email', $email);
|
$user = User::staticGet('email', $email);
|
||||||
return ($user !== false);
|
return ($user !== false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user