Merge branch 'ticket-14525-parrain'
This commit is contained in:
commit
6c0ce3ca13
@ -1304,10 +1304,14 @@ RewriteRule ^invite/(.*)$ '.__PS_BASE_URI__.'modules/invite/sponsor.php?sponsor=
|
||||
0
|
||||
)');
|
||||
|
||||
if (!$result) {
|
||||
$error_edit = $this->l("Impossible d'enregistrer le parain");
|
||||
}
|
||||
|
||||
// Create rewards
|
||||
if (count($orders) == 1 && $result) {
|
||||
$sponsorCustomer = new Customer($id_sponsor);
|
||||
$this->_make_rewards($sponsorCustomer->id);
|
||||
$this->_make_rewards($sponsorCustomer->id);
|
||||
}
|
||||
}
|
||||
// Replace
|
||||
|
Loading…
Reference in New Issue
Block a user