Fix: Error if subproducts enabled

This commit is contained in:
Laurent Destailleur 2009-01-29 12:14:06 +00:00
parent bccfe541ca
commit 5d2d005e13

View File

@ -470,7 +470,7 @@ if ($id > 0 || ! empty($ref))
print "</tr>"; print "</tr>";
// associations sous produits // associations sous produits
if ($objp->fk_product > 0) if (! empty($conf->global->PRODUIT_SOUSPRODUITS) && $objp->fk_product > 0)
{ {
$product->get_sousproduits_arbo (); $product->get_sousproduits_arbo ();
$prods_arbo = $product->get_arbo_each_prod($qtyProdCom); $prods_arbo = $product->get_arbo_each_prod($qtyProdCom);