diff --git a/htdocs/admin/pdf.php b/htdocs/admin/pdf.php
index e2a99441ea8..56c6f977827 100644
--- a/htdocs/admin/pdf.php
+++ b/htdocs/admin/pdf.php
@@ -283,7 +283,7 @@ if ($action == 'edit') // Edit
//Invert sender and recipient
print '
| '.$langs->trans("SwapSenderAndRecipientOnPDF").' | ';
- print $form->selectyesno('MAIN_INVERT_SENDER_RECIPIENT',(! empty($conf->global->MAIN_INVERT_SENDER_RECIPIENT))?$conf->global->MAIN_INVERT_SENDER_RECIPIENT:0,1);
+ print $form->selectyesno('MAIN_INVERT_SENDER_RECIPIENT', (! empty($conf->global->MAIN_INVERT_SENDER_RECIPIENT))?$conf->global->MAIN_INVERT_SENDER_RECIPIENT:0, 1);
print ' |
';
// Place customer adress to the ISO location
diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php
index 89d7258e3cc..a9d3e5979ce 100644
--- a/htdocs/product/stock/card.php
+++ b/htdocs/product/stock/card.php
@@ -74,7 +74,7 @@ if ($id > 0 || ! empty($ref)) {
}
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
-$hookmanager->initHooks(array('warehousecard','globalcard'));
+$hookmanager->initHooks(array('warehousecard', 'globalcard'));
/*
* Actions