diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index d3800aceb76..6c5fe327517 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1309,7 +1309,7 @@ class Form $sql .= " ORDER BY a.label ASC"; dol_syslog("Form::select_address sql=".$sql); - $resql=$db->query($sql); + $resql=$this->db->query($sql); if ($resql) { print '