This commit is contained in:
tianshujie
2021-11-18 15:07:51 +08:00
parent c4e9dc5a4e
commit 0a03aea29a
+6 -3
View File
@@ -71,11 +71,14 @@ class build extends control
$products = array();
/* Set branches and products. */
if($productGroups[$productID]->type != 'normal' and isset($branchGroups[$productID]))
if(!empty($productGroups) and isset($productGroups[$productID]))
{
foreach($branchGroups[$productID] as $branchID => $branch)
if($productGroups[$productID]->type != 'normal' and isset($branchGroups[$productID]))
{
$branches[$branchID] = $branchPairs[$branchID];
foreach($branchGroups[$productID] as $branchID => $branch)
{
$branches[$branchID] = $branchPairs[$branchID];
}
}
}