From 5660267ec218dd15fb6bd622b7ba4412fee1e61a Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Mon, 29 Aug 2022 10:14:18 +0800 Subject: [PATCH] * Fix bug #26924. --- module/testreport/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testreport/model.php b/module/testreport/model.php index 22be9f82aa..002012e1f5 100644 --- a/module/testreport/model.php +++ b/module/testreport/model.php @@ -332,7 +332,7 @@ class testreportModel extends model $this->loadModel('tree'); $modules = array(); $data = array(); - if(is_string($productIdList)) $productIdList = explode(',', $productIdList); + if(!is_array($productIdList)) $productIdList = explode(',', $productIdList); foreach($productIdList as $productID) $modules += $this->tree->getOptionMenu($productID, $viewType = 'bug'); foreach($moduleGroups as $moduleID => $count) {