Change display
This commit is contained in:
parent
1903c42573
commit
563bd0c7df
@ -242,10 +242,10 @@ if ($oi_enable = Configuration::get('INVITE_OPENINVITER_ENABLE')) {
|
||||
$oi_services = $inviter->getPlugins();
|
||||
}
|
||||
|
||||
$display_credits = true;
|
||||
$display_credits = false;
|
||||
$sql = 'SELECT id_customer FROM `'._DB_PREFIX_.'customer_credits` WHERE id_customer = ' . (int)$customer->id;
|
||||
if (Db::getInstance()->getValue($sql)){
|
||||
$display_credits = false;
|
||||
if (Db::getInstance()->getValue($sql) === false){
|
||||
$display_credits = true;
|
||||
}
|
||||
|
||||
$customer_credit = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user