原因分析:
$remainhots = $remainhots - count($hotpids);
$remainhots 可能为负,
DZ代码 if($remainhots) 后直接用于 limit $remainhots,所以出现了limit -1错误
1314学习网提供解决办法:
打开:source\module\forum\forum_viewthread.php
找到
- if($_G['setting']['nofilteredpost'] && $_G['forum_thread']['replies'] > $_G['setting']['postperpage'] && $remainhots) {
复制代码 修改为- if($_G['setting']['nofilteredpost'] && $_G['forum_thread']['replies'] > $_G['setting']['postperpage'] && $remainhots >0) {
复制代码 也就是将 $remainhots 改为 $remainhots >0
|