Merge branch 'ticket/r16112-display-credit' into develop

This commit is contained in:
Michael RICOIS 2018-02-28 11:24:27 +01:00
commit a5578a75c1
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

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