diff --git a/core/lib/Thelia/Controller/Front/CustomerController.php b/core/lib/Thelia/Controller/Front/CustomerController.php
index 86ee1afe7..408f675c1 100644
--- a/core/lib/Thelia/Controller/Front/CustomerController.php
+++ b/core/lib/Thelia/Controller/Front/CustomerController.php
@@ -41,7 +41,7 @@ class CustomerController extends BaseFrontController
public function createAction()
{
$request = $this->getRequest();
- $customerCreation = new CustomerCreation($$request);
+ $customerCreation = new CustomerCreation($request);
try {
$form = $this->validateForm($customerCreation, "post");
@@ -62,9 +62,9 @@ class CustomerController extends BaseFrontController
$data["email"],
$data["password"],
$request->getSession()->getLang(),
- $data["reseller"],
- $data["sponsor"],
- $data["discount"]
+ isset($data["reseller"])?$data["reseller"]:null,
+ isset($data["sponsor"])?$data["sponsor"]:null,
+ isset($data["discount"])?$data["discount"]:nullsch
);
$this->getDispatcher()->dispatch(TheliaEvents::CUSTOMER_CREATEACCOUNT, $customerCreateEvent);
diff --git a/local/config/schema.xml b/local/config/schema.xml
index 460d1814b..59ef62cb9 100755
--- a/local/config/schema.xml
+++ b/local/config/schema.xml
@@ -385,7 +385,7 @@
-
+
@@ -460,10 +460,10 @@
-
+
-
+
@@ -480,10 +480,10 @@
-
+
-
+
@@ -546,7 +546,7 @@
-
+
@@ -975,10 +975,10 @@
-
+
-
+
@@ -995,10 +995,10 @@
-
+
-
+
@@ -1015,10 +1015,10 @@
-
+
-
+
@@ -1035,10 +1035,10 @@
-
+
-
+
@@ -1055,10 +1055,10 @@
-
+
-
+
@@ -1075,10 +1075,10 @@
-
+
-
+