* Fix error of undefined vars.

This commit is contained in:
liumengyi
2023-10-13 17:18:22 +08:00
parent b0041ff936
commit 0aabda2e6f
+3 -2
View File
@@ -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);