diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php index 5728e1ae5f5..c8628bd26a0 100644 --- a/htdocs/public/members/new.php +++ b/htdocs/public/members/new.php @@ -251,7 +251,7 @@ if ($action == 'add') $extralabels=$extrafields->fetch_name_optionals_label($adh->table_element); $ret = $extrafields->setOptionalsFromPost($extralabels,$adh); - $result=$adh->create($user->id); + $result=$adh->create($user); if ($result > 0) { require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';