From 4c317bf8b0627f6513540a2efce3f4009542e262 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Fri, 19 Jan 2024 08:45:34 +0800 Subject: [PATCH] - Delete unused variable. --- lib/zin/wg/productsbox/v1.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/zin/wg/productsbox/v1.php b/lib/zin/wg/productsbox/v1.php index 662b39cc5b..be9ed23e4d 100644 --- a/lib/zin/wg/productsbox/v1.php +++ b/lib/zin/wg/productsbox/v1.php @@ -35,10 +35,7 @@ class productsBox extends wg protected function build(): wg { - global $lang, $config; - list($productItems, $branchGroups, $planGroups, $productPlans) = $this->prop(array('productItems', 'branchGroups', 'planGroups', 'productPlans')); - list($linkedProducts, $linkedBranches, $currentProduct, $currentPlan) = $this->prop(array('linkedProducts', 'linkedBranches', 'currentProduct', 'currentPlan')); - list($project, $isStage) = $this->prop(array('project', 'isStage')); + list($project, $productItems, $linkedProducts) = $this->prop(array('project', 'productItems', 'linkedProducts')); $productsBox = array(); if(!empty($project->hasProduct) && $linkedProducts)