Merge branch 'ticket/r16112-display-credit' into develop
This commit is contained in:
commit
a5578a75c1
@ -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');
|
||||
}
|
||||
|
||||
|
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user