diff --git a/htdocs/telephonie/distributeurs/distributeur.php b/htdocs/telephonie/distributeurs/distributeur.php
index 55a67d57a32..f330599e5aa 100644
--- a/htdocs/telephonie/distributeurs/distributeur.php
+++ b/htdocs/telephonie/distributeurs/distributeur.php
@@ -104,8 +104,7 @@ if ($_GET["id"])
}
print '
';
- print '
';
- print '| Commerciaux |
';
+
$sql = "SELECT u.rowid, u.firstname, u.name";
$sql .= " FROM ".MAIN_DB_PREFIX."user as u";
@@ -118,12 +117,21 @@ if ($_GET["id"])
if ($resql)
{
- while ($row = $db->fetch_row($resql))
+ $num = $db->num_rows($resql);
+
+ if ($num > 0 )
{
- $var=!$var;
- print "";
- print '| ';;
- print $row[1].' '.$row[2].' | ';
+ print '
';
}
$db->free($resql);
}
@@ -131,7 +139,7 @@ if ($_GET["id"])
{
print $db->error() . ' ' . $sql;
}
- print '
';
+
print '