diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index 656679a66f0..37ad8a6384c 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -76,9 +76,7 @@ class FormMail * @param DoliDB $db Database handler */ function __construct($db) - { - global $conf; - + { $this->db = $db; $this->withform=1;