empty email = NULL

git-svn-id: file:///home/shish/svn/shimmie2/trunk@405 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-08-01 16:01:33 +00:00
parent 96953c55b2
commit 7b9a8f83eb

View File

@ -176,7 +176,7 @@ class UserPage extends Extension {
else { else {
$addr = $_SERVER['REMOTE_ADDR']; $addr = $_SERVER['REMOTE_ADDR'];
$hash = md5( strtolower($name) . $pass1 ); $hash = md5( strtolower($name) . $pass1 );
$email = isset($_POST['email']) ? $_POST['email'] : null; $email = (isset($_POST['email']) && !empty($_POST['email'])) ? $_POST['email'] : null;
// FIXME: send_event() // FIXME: send_event()
$database->Execute( $database->Execute(