Display credit on standard customer

This commit is contained in:
Michael RICOIS 2018-02-28 11:14:09 +01:00
parent 427258606c
commit af201001f1
2 changed files with 2 additions and 2 deletions

View File

@ -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');
}

View File

@ -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'];