Fix: uniformize code
This commit is contained in:
parent
302ab8b726
commit
7adef0ca3a
@ -2006,8 +2006,8 @@ class Product extends CommonObject
|
|||||||
while ($rec = $this->db->fetch_array($res))
|
while ($rec = $this->db->fetch_array($res))
|
||||||
{
|
{
|
||||||
$prods[addslashes($rec['label'])]= array(0=>$rec['id'],1=>$rec['qty']);
|
$prods[addslashes($rec['label'])]= array(0=>$rec['id'],1=>$rec['qty']);
|
||||||
foreach($this -> getChildsArbo($rec['id']) as $kf=>$vf)
|
foreach($this->getChildsArbo($rec['id']) as $keyChild => $valueChild)
|
||||||
$prods[addslashes($rec['label'])][$kf] = $vf;
|
$prods[addslashes($rec['label'])][$keyChild] = $valueChild;
|
||||||
}
|
}
|
||||||
return $prods;
|
return $prods;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user