diff --git a/htdocs/core/modules/payment/mod_payment_ant.php b/htdocs/core/modules/payment/mod_payment_ant.php
index c324f1e4e6e..42f7b0c8be0 100644
--- a/htdocs/core/modules/payment/mod_payment_ant.php
+++ b/htdocs/core/modules/payment/mod_payment_ant.php
@@ -61,11 +61,11 @@ class mod_payment_ant extends ModeleNumRefPayments
*/
function info()
{
- global $conf, $langs;
+ global $db, $conf, $langs;
$langs->load("bills");
- $form = new Form($this->db);
+ $form = new Form($db);
$texte = $langs->trans('GenericNumRefModelDesc')."
\n";
$texte.= '