From 0aabda2e6fcadb6b4e8aaa9484b404fdcb8f867c Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 13 Oct 2023 17:18:22 +0800 Subject: [PATCH] * Fix error of undefined vars. --- module/common/tao.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/common/tao.php b/module/common/tao.php index 55662a6dc2..653e2a302b 100644 --- a/module/common/tao.php +++ b/module/common/tao.php @@ -58,8 +58,9 @@ class commonTao extends commonModel */ protected function queryListForPreAndNext(string $type, string $sql): array { - $objectIdListKey = strtolower($type . $this->app->getModuleName() . $this->app->getMethodName()) . 'BrowseList'; - $existsObjectList = $this->session->$objectIdListKey; + $objectIdListKey = strtolower($type . $this->app->getModuleName() . $this->app->getMethodName()) . 'BrowseList'; + $existsObjectList = $this->session->$objectIdListKey; + $typeOnlyCondition = $type . 'OnlyCondition'; if(empty($existsObjectList) or trim($existsObjectList['sql']) != trim($sql)) { $queryObjects = $this->dao->query($sql);