From fb591f619fa25549b8fb5ec68bfda09b9f3ccf05 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 5 Sep 2025 10:26:53 +0800 Subject: [PATCH] * [refac bug #65215] Adjust for sonar.. --- module/testcase/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index a100690818..37a7b48113 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -981,7 +981,7 @@ class testcase extends control /* bug 分页。*/ /* Pager. */ $this->app->loadClass('pager', true); - $recTotal = count($bugs2Link); + if(empty($recTotal)) $recTotal = count($bugs2Link); $pager = new pager($recTotal, $recPerPage, $pageID); $bugs2Link = array_chunk($bugs2Link, $pager->recPerPage);