From 7adef0ca3a285df065572df308fd5b0738938475 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 21 Feb 2010 07:50:33 +0000 Subject: [PATCH] Fix: uniformize code --- htdocs/product.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 8bbb8833903..ec3a12d4855 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -2006,8 +2006,8 @@ class Product extends CommonObject while ($rec = $this->db->fetch_array($res)) { $prods[addslashes($rec['label'])]= array(0=>$rec['id'],1=>$rec['qty']); - foreach($this -> getChildsArbo($rec['id']) as $kf=>$vf) - $prods[addslashes($rec['label'])][$kf] = $vf; + foreach($this->getChildsArbo($rec['id']) as $keyChild => $valueChild) + $prods[addslashes($rec['label'])][$keyChild] = $valueChild; } return $prods; }