From 1f30cab2f76eb50a14081a6c22edaec008698f05 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 1 Mar 2006 17:32:26 +0000 Subject: [PATCH] bugfix --- htdocs/product.class.php | 3 ++- htdocs/product/traduction.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 ) {