diff --git a/htdocs/public/eventorganization/attendee_subscription.php b/htdocs/public/eventorganization/attendee_subscription.php
index fec49e6648d..0250229e269 100644
--- a/htdocs/public/eventorganization/attendee_subscription.php
+++ b/htdocs/public/eventorganization/attendee_subscription.php
@@ -187,13 +187,10 @@ if ($reshook < 0) {
if (empty($reshook) && $action == 'add') {
$error = 0;
-
-
$urlback = '';
$db->begin();
-
if (!GETPOST("email")) {
$error++;
$errmsg .= $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Email"))."
\n";
@@ -223,7 +220,12 @@ if (empty($reshook) && $action == 'add') {
$readythirdparty = -1;
} elseif ($resultfetchthirdparty==0) {
// creation of a new thirdparty
- $thirdparty->name = GETPOST("societe");
+ if(!empty(GETPOST("societe"))){
+ $thirdparty->name = GETPOST("societe");
+ } else {
+ $thirdparty->name = $email;
+ }
+
$thirdparty->address = GETPOST("address");
$thirdparty->zip = GETPOST("zipcode");
$thirdparty->town = GETPOST("town");
@@ -324,8 +326,8 @@ print '