diff --git a/modules/invite/invite-program.php b/modules/invite/invite-program.php index a9cfdafd..1f92fd7a 100644 --- a/modules/invite/invite-program.php +++ b/modules/invite/invite-program.php @@ -249,7 +249,7 @@ if (Db::getInstance()->getValue($sql) === false) { } $customer_credit = 0; -if ($display_credits === false) { +if ($display_credits === true) { $customer_credit = $invite->_get_credit((int) $cookie->id_customer, false, false, 'frontoffice'); } diff --git a/modules/invite/invite.php b/modules/invite/invite.php index 855c74f4..dc167f91 100644 --- a/modules/invite/invite.php +++ b/modules/invite/invite.php @@ -1431,7 +1431,7 @@ RewriteRule ^invite/(.*)$ '.__PS_BASE_URI__.'modules/invite/sponsor.php?sponsor= WHERE `id_customer` = '.(int) $id_customer ); - if(count($credit) == 0) { + if (count($credit) == 0) { $credit = 0; } else { $credit = $credit[0]['credit'];