Skip to content
Snippets Groups Projects
Commit 45c7f8cc authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: erreur

parent 05c6f4e0
No related branches found
No related tags found
No related merge requests found
......@@ -240,9 +240,10 @@ if ($_POST['action'] == 'add')
if ($facid)
{
$contrat = New Contrat($db);
if ( $contrat->fetch($_POST['contratid']) )
if ($contrat->fetch($_POST['contratid']) > 0)
{
$lines = $contrat->fetch_lignes();
for ($i = 0 ; $i < sizeof($lines) ; $i++)
{
$liblignefac=($contrat->lignes[$i]->desc?$contrat->lignes[$i]->desc:$contrat->lignes[$i]->libelle);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment