diff --git a/htdocs/comm/contact.php b/htdocs/comm/contact.php index 1f764033aa0..f53f962b6c9 100644 --- a/htdocs/comm/contact.php +++ b/htdocs/comm/contact.php @@ -36,6 +36,7 @@ llxHeader(); $sortorder=$_GET["sortorder"]; $sortfield=$_GET["sortfield"]; $page=$_GET["page"]; + $socid=$_GET["socid"]; $type=$_GET["type"]; @@ -49,9 +50,9 @@ if ($user->societe_id > 0) $socid = $user->societe_id; } -$sortorder=$_GET["sortorder"]; -$sortfield=$_GET["sortfield"]; -$page=$_GET["page"]; + + + if ($sortorder == "") { @@ -61,7 +62,7 @@ if ($sortfield == "") { $sortfield="p.name"; } -$page=$_GET["page"]; + if ($page == -1) { $page = 0 ; } $limit = $conf->liste_limit; $offset = $limit * $page ; @@ -132,33 +133,6 @@ if ($result) print_barre_liste("Liste des contacts $label",$page, "contact.php", "&type=$type",$sortfield,$sortorder,"",$num); - print "