diff --git a/htdocs/compta/deplacement/fiche.php b/htdocs/compta/deplacement/fiche.php
index 1808f400e23..a169ec7aa61 100644
--- a/htdocs/compta/deplacement/fiche.php
+++ b/htdocs/compta/deplacement/fiche.php
@@ -410,7 +410,7 @@ else if ($id)
// Public note
print '
';
$out.= $value;
diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php
index 61b1776a279..98fcb0d37ac 100644
--- a/htdocs/fichinter/class/fichinter.class.php
+++ b/htdocs/fichinter/class/fichinter.class.php
@@ -80,7 +80,8 @@ class Fichinter extends CommonObject
/**
- * Create a intervention into data base
+ * Create an intervention into data base
+ *
* @return int <0 if KO, >0 if OK
*/
function create()
@@ -169,10 +170,11 @@ class Fichinter extends CommonObject
}
/**
- * Update a intervention
+ * Update an intervention
+ *
* @return int <0 if KO, >0 if OK
*/
- function update($user)
+ function update()
{
if (! is_numeric($this->duree)) { $this->duree = 0; }
if (! dol_strlen($this->fk_project)) { $this->fk_project = 0; }
@@ -204,8 +206,9 @@ class Fichinter extends CommonObject
/**
* Fetch a intervention
- * @param rowid Id of intervention
- * @param ref Ref of intervention
+ *
+ * @param int $id Id of intervention
+ * @param string $ref Ref of intervention
* @return int <0 if ko, >0 if ok
*/
function fetch($rowid,$ref='')
diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php
index e2632b4302c..a750a8e848d 100644
--- a/htdocs/fichinter/fiche.php
+++ b/htdocs/fichinter/fiche.php
@@ -159,7 +159,7 @@ if ($action == 'update')
$object->description = $_POST["description"];
$object->ref = $ref;
- $object->update($user);
+ $object->update();
}
/*
@@ -619,7 +619,7 @@ if ($action == 'send' && ! $_POST['cancel'] && (empty($conf->global->MAIN_USE_AD
* View
*/
-$html = new Form($db);
+$form = new Form($db);
$formfile = new FormFile($db);
llxHeader();
@@ -694,7 +694,7 @@ if ($action == 'create')
print '
'.$langs->trans("DefaultModel").' | ';
print '
';
$liste=ModelePDFFicheinter::liste_modeles($db);
- print $html->selectarray('model',$liste,$conf->global->FICHEINTER_ADDON_PDF);
+ print $form->selectarray('model',$liste,$conf->global->FICHEINTER_ADDON_PDF);
print " | ";
// Public note
@@ -727,7 +727,7 @@ if ($action == 'create')
print '