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 ae2150e8464..1c78d6726d3 100644
--- a/htdocs/product/stock/card.php
+++ b/htdocs/product/stock/card.php
@@ -56,7 +56,7 @@ $backtopage=GETPOST('backtopage', 'alpha');
$result=restrictedArea($user, 'stock');
// 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'));
$object = new Entrepot($db);