From fc63dceb72fffd39dbffd48b61db4e4edf22ea62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=8D=8E=E4=BC=9F?= Date: Fri, 13 May 2022 17:29:44 +0800 Subject: [PATCH] *Optimize the code. --- module/testtask/control.php | 1 - 1 file changed, 1 deletion(-) diff --git a/module/testtask/control.php b/module/testtask/control.php index ce9251dd69..13b8418a7e 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -97,7 +97,6 @@ class testtask extends control $endTime = $endTime ? date('Y-m-d', strtotime($endTime)) : ''; /* Set menu. */ - if(empty($this->products[$productID])) $productID = array_key_first($this->products); $productID = $this->product->saveState($productID, $this->products); $branch = ($this->cookie->preBranch !== '' and $branch === '') ? $this->cookie->preBranch : $branch; $this->loadModel('qa')->setMenu($this->products, $productID, $branch, $type);