diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 8957cd9ecec..64b79aff73d 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -333,6 +333,7 @@ class Product $this->description = $obj->description; $this->note = $obj->note; } + } } else { @@ -340,7 +341,7 @@ class Product return -1; } } -} + /** diff --git a/htdocs/product/traduction.php b/htdocs/product/traduction.php index 0f05ef14ef6..9d3641f9211 100644 --- a/htdocs/product/traduction.php +++ b/htdocs/product/traduction.php @@ -99,7 +99,7 @@ if ($_POST["action"] == 'vedit' && $product->fetch($_POST["id"]); $current_lang = $langs->getDefaultLang(); - foreach ( $product->multilangs as $key => &$value ) // enregistrement des nouvelles valeurs dans l'objet + foreach ( $product->multilangs as $key => $value ) // enregistrement des nouvelles valeurs dans l'objet { if ( $key == $current_lang ) {