* Change the smell code.

This commit is contained in:
tianshujie
2023-07-08 13:56:50 +08:00
parent f14fc34a3b
commit 72a0b0f6bb
10 changed files with 18 additions and 21 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ if(isset($project->hasProduct) && !empty($project->hasProduct) && $products)
{
$hasBranch = $product->type != 'normal' && isset($branchGroups[$product->id]);
$branches = isset($branchGroups[$product->id]) ? $branchGroups[$product->id] : array();
if(!isset($linkedBranches)) $branchIdList = isset($product->branches) ? join(',', $product->branches) : '';
if(!isset($linkedBranches)) $branchIdList = isset($product->branches) ? implode(',', $product->branches) : '';
if(isset($linkedBranches)) $branchIdList = !empty($linkedBranches[$product->id]) ? $linkedBranches[$product->id] : '';
if(empty($productID) || (!empty($productID) || $productID != $product->id))
{