diff --git a/htdocs/telephonie/client/factures.php b/htdocs/telephonie/client/factures.php index 70f275c2886..83fbe92e93b 100644 --- a/htdocs/telephonie/client/factures.php +++ b/htdocs/telephonie/client/factures.php @@ -47,7 +47,7 @@ if ($_GET["id"]) $head[$h][1] = $langs->trans("Contrats"); $h++; - $head[$h][0] = DOL_URL_ROOT."/telephonie/client/fiche.php?id=".$soc->id; + $head[$h][0] = DOL_URL_ROOT."/telephonie/client/lignes.php?id=".$soc->id; $head[$h][1] = $langs->trans("Lignes"); $h++; @@ -104,10 +104,10 @@ if ($_GET["id"]) $sql .= " AND s.idp = ".$soc->id; $sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit+1, $offset); - $result = $db->query($sql); - if ($result) + $resql = $db->query($sql); + if ($resql) { - $num = $db->num_rows(); + $num = $db->num_rows($resql); $i = 0; print '