From b168ea15d2a59f05e5a10f7afcc8c16cd1482682 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 10 Oct 2005 20:20:31 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Mise=20en=20param=E8tre=20du=20nombre=20?= =?UTF-8?q?max=20d'=E9l=E9ments=20de=20la=20liste=20des=20produits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/html.form.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 5405f9ee621..da3e34b0d52 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -526,9 +526,8 @@ class Form * \param htmlname Nom de la zone select * \param filtretype Pour filtre sur type de produit * \param limit Limite sur le nombre de lignes retournées - * \param filtre Pour filtre */ - function select_produits($selected='',$htmlname='productid',$filtretype='',$limit=20,$filtre) + function select_produits($selected='',$htmlname='productid',$filtretype='',$limit=20) { global $langs,$conf; @@ -536,7 +535,6 @@ class Form $sql.= " FROM ".MAIN_DB_PREFIX."product as p "; $sql.= " WHERE p.envente = 1"; if ($filtretype && $filtretype != '') $sql.=" AND p.fk_product_type=".$filtretype; - if ($filtre) $sql.="$filtre"; $sql.= " ORDER BY p.nbvente DESC"; if ($limit) $sql.= " LIMIT $limit";