From 9667d6985d926a3b6ff74edbf7895c032bed1c91 Mon Sep 17 00:00:00 2001 From: liugang Date: Fri, 31 May 2024 18:31:11 +0800 Subject: [PATCH] * testtask: convert module in cookie to int to avoid type error. --- module/testtask/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testtask/control.php b/module/testtask/control.php index 0aab41a548..ece025a05e 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -399,7 +399,7 @@ class testtask extends control $this->app->loadClass('pager', $static = true); $pager = pager::init($recTotal, $recPerPage, $pageID); $queryID = ($browseType == 'bysearch' or $browseType == 'bysuite') ? $param : 0; - $moduleID = ($browseType == 'bymodule') ? $param : ($browseType == 'bysearch' ? 0 : ($this->cookie->taskCaseModule ?: 0)); + $moduleID = ($browseType == 'bymodule') ? $param : ($browseType == 'bysearch' ? 0 : ((int)$this->cookie->taskCaseModule ?: 0)); $sort = common::appendOrder($orderBy, 't2.id'); $sort = str_replace('case_', 'id_', $sort);