changeset 48:1fccb8f031ed

Fix e-mail check.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 05 Oct 2013 03:59:03 +0300
parents 73123e322133
children ba33b18c03b5
files register.inc.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/register.inc.php	Sat Oct 05 00:49:28 2013 +0300
+++ b/register.inc.php	Sat Oct 05 03:59:03 2013 +0300
@@ -137,7 +137,7 @@
       stError("E-mail address not given, or it is too short.");
   }
 
-  if (strlen($email) >= 0 && (strpos($email, "@") === FALSE || strpos($email, ".") === FALSE))
+  if (strlen($email) > 0 && (strpos($email, "@") === FALSE || strpos($email, ".") === FALSE))
     stError("E-mail address not in proper format.");
 
   $hash = stGetRequestItem("hash");