Fix var not defined

This commit is contained in:
Laurent Destailleur 2018-03-09 22:59:44 +01:00
parent 40d04482b0
commit 9efea6e30e

View File

@ -1429,8 +1429,8 @@ class Adherent extends CommonObject
$result=$customer->create_from_member($this, $companyname, $companyalias); $result=$customer->create_from_member($this, $companyname, $companyalias);
if ($result < 0) if ($result < 0)
{ {
$this->error = $company->error; $this->error = $customer->error;
$this->errors = $company->errors; $this->errors = $customer->errors;
$error++; $error++;
} }
else else