From 46bd75430f6f5bc6e3e365c57bcb712af45040b1 Mon Sep 17 00:00:00 2001 From: tianya Date: Thu, 16 Mar 2023 21:41:00 +0800 Subject: [PATCH] Update datalistcp.class.php --- src/system/datalistcp.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/datalistcp.class.php b/src/system/datalistcp.class.php index 403f989d..75fe9fb9 100755 --- a/src/system/datalistcp.class.php +++ b/src/system/datalistcp.class.php @@ -115,7 +115,7 @@ class DataListCP $countQuery = preg_replace("#ORDER[ \r\n\t]{1,}BY(.*)#is", '', $countQuery); $row = $this->dsql->GetOne($countQuery); - if (is_array($row)) $row['dd'] = 0; + if (!is_array($row)) $row = array("dd" => 0); $this->totalResult = isset($row['dd']) ? $row['dd'] : 0; $this->sourceSql .= " LIMIT 0,".$this->pagesize; } else {