From 142f2422675bf3d9872b6a666a150f5ab0f278b9 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Sat, 13 Aug 2022 22:35:53 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/product/card.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/product/card.php b/htdocs/product/card.php index a87920c43f2..c192b29eb7e 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -667,16 +667,16 @@ if (empty($reshook)) { if (count($object->errors)) { setEventMessages($object->error, $object->errors, 'errors'); } else { - if($object->error == 'ErrorProductAlreadyExists') { - // permet une action personnallisée quand il y a tentative d'ajouter un produit + if ($object->error == 'ErrorProductAlreadyExists') { + // permet une action personnallisée quand il y a tentative d'ajouter un produit // avec un numéro de référence existant. $reshook = $hookmanager->executeHooks('onProductAlreadyExists', $parameters, $object, $action); if ($reshook < 0) { setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); - } - if($object->error) { + } + if ($object->error) { // L'erreur de l'objet a pu être effacée par la fonction - setEventMessages($langs->trans($object->error), null, 'errors'); + setEventMessages($langs->trans($object->error), null, 'errors'); } } else { setEventMessages($langs->trans($object->error), null, 'errors');