From 1137022f1bd7bbf417ea2ee6723ca662de6bb514 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 26 May 2003 17:38:10 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=E0=20jour=20nom=20des=20champs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/contact.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/contact.php b/htdocs/contact.php index 9b523c37f21..0391767a756 100644 --- a/htdocs/contact.php +++ b/htdocs/contact.php @@ -42,11 +42,11 @@ if ($sortfield == "") $sortfield="p.name"; } -if ($page == -1) { $page = 0 ; } +if ($page < 0) { $page = 0 ; } $limit = $conf->liste_limit; $offset = $limit * $page ; -print_barre_liste("Liste des contacts",$page, $PHP_SELF); +print_barre_liste("Liste des contacts",$page, $PHP_SELF, '', $sortfield, $sortorder); /* @@ -58,7 +58,7 @@ print_barre_liste("Liste des contacts",$page, $PHP_SELF); $sql = "SELECT s.idp, s.nom, st.libelle as stcomm, p.idp as cidp, p.name, p.firstname, p.email, p.phone "; -$sql .= "FROM societe as s, socpeople as p, c_stcomm as st WHERE s.fk_stcomm = st.id AND s.idp = p.fk_soc"; +$sql .= "FROM llx_societe as s, llx_socpeople as p, c_stcomm as st WHERE s.fk_stcomm = st.id AND s.idp = p.fk_soc"; if (strlen($stcomm)) // statut commercial {