This commit is contained in:
Regis Houssin 2006-05-30 19:04:30 +00:00
parent 27c019bece
commit 949df6831e
2 changed files with 32 additions and 35 deletions

View File

@ -561,7 +561,6 @@ class Expedition
while ($i < $num) while ($i < $num)
{ {
$ligne = new ExpeditionLigne(); $ligne = new ExpeditionLigne();
$obj = $this->db->fetch_object($resql); $obj = $this->db->fetch_object($resql);
$ligne->product_id = $obj->fk_product; $ligne->product_id = $obj->fk_product;
@ -574,10 +573,8 @@ class Expedition
} }
$this->db->free($resql); $this->db->free($resql);
} }
return $this->lignes; return $this->lignes;
} }
} }

View File

@ -172,9 +172,9 @@ class Livraison
function create_line($transaction, $commande_ligne_id, $qty) function create_line($transaction, $commande_ligne_id, $qty)
{ {
$error = 0; $error = 0;
$idprod = 0; $idprod = 0;
$j = 0; $j = 0;
while (($j < sizeof($this->commande->lignes)) && idprod == 0) while (($j < sizeof($this->commande->lignes)) && idprod == 0)
{ {
if ($this->commande->lignes[$j]->id == $commande_ligne_id) if ($this->commande->lignes[$j]->id == $commande_ligne_id)