diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index 02906c64920..23c9e5ecfc2 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -446,14 +446,14 @@ class Form
$sql.= " WHERE p.envente = 1";
if ($filtretype && $filtretype != '') $sql.=" AND p.fk_product_type=".$filtretype;
$sql.= " ORDER BY p.nbvente DESC";
- $sql.= " LIMIT $limit";
+ if ($limit) $sql.= " LIMIT $limit";
$result=$this->db->query($sql);
if ($result)
{
print '