diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index c49d6115cc5..0e64117d632 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1564,7 +1564,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
// 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);
@@ -1575,7 +1575,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
// Accountancy_code_buy
print ' |
| '.$langs->trans("ProductAccountancyBuyCode").' | ';
print '';
- if($type == 0) {
+ if ($type == 0) {
$accountancy_code_buy = (GETPOST('accountancy_code_buy', 'alpha')?(GETPOST('accountancy_code_buy', 'alpha')):$conf->global->ACCOUNTING_PRODUCT_BUY_ACCOUNT);
} else {
$accountancy_code_buy = (GETPOST('accountancy_code_buy', 'alpha')?(GETPOST('accountancy_code_buy', 'alpha')):$conf->global->ACCOUNTING_SERVICE_BUY_ACCOUNT);
diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php
index b3b3497dcf5..c8fc2f58e74 100644
--- a/htdocs/societe/class/societe.class.php
+++ b/htdocs/societe/class/societe.class.php
@@ -4491,8 +4491,7 @@ class Societe extends CommonObject
$this->db->commit();
return 1;
}
- else
- {
+ else {
$this->error=$this->db->lasterror();
$this->db->rollback();
return -1;
|