diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index 6f214d5d2eb..c726e1d8fed 100644
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -5196,7 +5196,7 @@ elseif ($id > 0 || !empty($ref))
{
if (!$objectidnext)
{
- print ''.$langs->trans("CreateCreditNote").'';
+ print ''.$langs->trans("CreateCreditNote").'';
}
}
diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php
index afd5830d4c1..1b36c35f0d4 100644
--- a/htdocs/install/upgrade2.php
+++ b/htdocs/install/upgrade2.php
@@ -3623,10 +3623,9 @@ function migrate_mode_reglement($db, $langs, $conf)
* @param DoliDB $db Database handler
* @param Translate $langs Object langs
* @param Conf $conf Object conf
- * @param string $versionto Version target
* @return void
*/
-function migrate_clean_association($db, $langs, $conf, $versionto)
+function migrate_clean_association($db, $langs, $conf)
{
$result = $db->DDLDescTable(MAIN_DB_PREFIX."categorie_association");
if ($result) // result defined for version 3.2 or -