From cf1d269f15e10a84c24f14e6991b7b37d333b2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a?= Date: Sat, 1 Jun 2013 16:11:45 +0200 Subject: [PATCH] Avoid warnings --- htdocs/product/class/product.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index b9ad2991738..6bb6f41e172 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -2157,13 +2157,13 @@ class Product extends CommonObject 'fullpath' => $compl_path.$label, // Label 'type'=>$type // Nb of units that compose parent product ); - } - // Recursive call if child is an array - if (is_array($desc_pere['childs'])) - { - //print 'YYY We go down for '.$desc_pere[3]." -> \n"; - $this ->fetch_prod_arbo($desc_pere['childs'], $compl_path.$desc_pere[3]." -> ", $desc_pere[1]*$multiply, $level+1); + // Recursive call if child is an array + if (is_array($desc_pere['childs'])) + { + //print 'YYY We go down for '.$desc_pere[3]." -> \n"; + $this ->fetch_prod_arbo($desc_pere['childs'], $compl_path.$desc_pere[3]." -> ", $desc_pere[1]*$multiply, $level+1); + } } } }