diff --git a/htdocs/subtotals/class/commonsubtotal.class.php b/htdocs/subtotals/class/commonsubtotal.class.php index ed191f8e1e6..5481f0a9077 100644 --- a/htdocs/subtotals/class/commonsubtotal.class.php +++ b/htdocs/subtotals/class/commonsubtotal.class.php @@ -213,6 +213,7 @@ trait CommonSubtotal ); $this->fetch_lines(); } elseif ($current_module == 'fichinter' && $this instanceof Fichinter) { + global $user; $result = $this->addline( $user, // user $this->id, // fk_fichinter