Merge branch 'ticket-14525-parrain' into develop

This commit is contained in:
Michael RICOIS 2017-11-28 10:14:30 +01:00
commit d1bc78f4cd

View File

@ -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