From 7e6894734d00070ce09a4f01dbf34bcd1dcc1db2 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 13 Jul 2007 12:23:07 +0000 Subject: [PATCH] Fix: parametre manquant --- htdocs/contrat/contrat.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/contrat/contrat.class.php b/htdocs/contrat/contrat.class.php index fb9d0f24f61..ba5a53b2831 100644 --- a/htdocs/contrat/contrat.class.php +++ b/htdocs/contrat/contrat.class.php @@ -359,7 +359,7 @@ class Contrat extends CommonObject { $objp = $this->db->fetch_object($result); - $ligne = new ContratLigne(); + $ligne = new ContratLigne($db); $ligne->id = $objp->rowid; $ligne->desc = $objp->description; // Description ligne $ligne->qty = $objp->qty; @@ -1226,7 +1226,7 @@ class ContratLigne */ function ContratLigne($DB) { - $this->db= $DB; + $this->db = $DB; }