From 960a092a9ca4cb40f209b4c8583fbb129ff84087 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 23 Jun 2008 21:46:42 -0400 Subject: don't validate email if none provided darcs-hash:20080624014642-34904-7d4b1b91a3163add6a99146f92360913e172a39a.gz --- actions/register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions/register.php') diff --git a/actions/register.php b/actions/register.php index 16e80ef17..95e684c1b 100644 --- a/actions/register.php +++ b/actions/register.php @@ -49,7 +49,7 @@ class RegisterAction extends Action { if (!$this->boolean('license')) { $this->show_form(_t('You can\'t register if you don\'t agree to the license.')); - } else if (!Validate::email($email, true)) { + } else if ($email && !Validate::email($email, true)) { $this->show_form(_t('Not a valid email address.')); } else if (!Validate::string($nickname, array('min_length' => 1, 'max_length' => 64, -- cgit v1.2.3-54-g00ecf