This commit is contained in:
Regis Houssin 2006-03-01 17:32:26 +00:00
parent 39f3869c0d
commit 1f30cab2f7
2 changed files with 3 additions and 2 deletions

View File

@ -334,13 +334,14 @@ class Product
$this->note = $obj->note; $this->note = $obj->note;
} }
} }
}
else else
{ {
$this->error=$langs->trans("Error")." : ".$this->db->error()." - ".$sql; $this->error=$langs->trans("Error")." : ".$this->db->error()." - ".$sql;
return -1; return -1;
} }
} }
}
/** /**

View File

@ -99,7 +99,7 @@ if ($_POST["action"] == 'vedit' &&
$product->fetch($_POST["id"]); $product->fetch($_POST["id"]);
$current_lang = $langs->getDefaultLang(); $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 ) if ( $key == $current_lang )
{ {