diff --git a/htdocs/product/card.php b/htdocs/product/card.php
index 565cb6f7565..ebf9c093c02 100644
--- a/htdocs/product/card.php
+++ b/htdocs/product/card.php
@@ -1174,7 +1174,7 @@ else
// Accountancy_code_sell
print '
| '.$langs->trans("ProductAccountancySellCode").' | ';
print '';
- if($type = 0) {
+ if($type == 0) {
$accountancy_code_sell = (GETPOST('accountancy_code_sell', 'alpha')?(GETPOST('accountancy_code_sell', 'alpha')):$conf->global->ACCOUNTING_PRODUCT_SOLD_ACCOUNT);
} else {
$accountancy_code_sell = (GETPOST('accountancy_code_sell', 'alpha')?(GETPOST('accountancy_code_sell', 'alpha')):$conf->global->ACCOUNTING_SERVICE_SOLD_ACCOUNT);
|