DEDECMS5.7會(huì)員空間文章分頁(yè)總是顯示0頁(yè)0條記錄錯(cuò)誤。給予修正。
修正辦法
打開(kāi)include/arc.memberlistview.class.php
查找
$countQuery = preg_replace("/select[ \r\n\t](.*)[ \r\n\t]from/i","Select count(*) as dd From",$this->sourceSql);
修改為
$countQuery = preg_replace("#SELECT[ \r\n\t](.*)[ \r\n\t]FROM#is", 'SELECT COUNT(*) AS dd FROM', $this->sourceSql);
$countQuery = preg_replace("#ORDER[ \r\n\t]{1,}BY(.*)#is", '', $countQuery);
就可以了
|
|