diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php index 8e612818eab..9f5faa18d75 100644 --- a/htdocs/compta/facture/fiche-rec.php +++ b/htdocs/compta/facture/fiche-rec.php @@ -26,7 +26,6 @@ $user->getrights('facture'); if (!$user->rights->facture->lire) accessforbidden(); -require("../../facture.class.php"); require("../../project.class.php"); llxHeader('','Facture récurrente','ch-facture.html#s-fac-facture-rec'); @@ -82,18 +81,18 @@ $html = new Form($db); * * ************************************************************************/ -if ($action == 'create') +if ($_GET["action"] == 'create') { print_titre("Créer une facture récurrente"); $facture = new Facture($db); - if ($facture->fetch($facid) > 0) + if ($facture->fetch($_GET["facid"]) > 0) { print '