diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index 08474776512..a815875dc52 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -871,6 +871,7 @@ class FormMail extends Form $resql = $this->db->query($sql); if ($resql) { + $num=$this->db->num_rows($resql); $this->lines_model=array(); while ($obj = $this->db->fetch_object($resql)) {