Change display

This commit is contained in:
Michael RICOIS 2018-02-27 10:44:27 +01:00
parent 1903c42573
commit 563bd0c7df

View File

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