diff --git a/htdocs/core/modules/takepos/mod_takepos_ref_universal.php b/htdocs/core/modules/takepos/mod_takepos_ref_universal.php
index 7e46c10a341..5d35bfd1214 100644
--- a/htdocs/core/modules/takepos/mod_takepos_ref_universal.php
+++ b/htdocs/core/modules/takepos/mod_takepos_ref_universal.php
@@ -57,11 +57,11 @@ class mod_takepos_ref_universal extends ModeleNumRefTakepos
*/
public function info()
{
- global $conf, $langs;
+ global $db, $langs;
$langs->load('cashdesk@cashdesk');
- $form = new Form($this->db);
+ $form = new Form($db);
$texte = $langs->trans('GenericNumRefModelDesc')."
\n";
$texte .= '