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);