Discuz教程网

forum_filter_post 表limit -1错误的解决办法

[复制链接]
原创
authicon dly 发表于 2013-6-16 09:34:21 | 显示全部楼层 |阅读模式
233248ocsonko1s1hsph12.jpg
原因分析:
$remainhots = $remainhots - count($hotpids);
$remainhots 可能为负,
DZ代码 if($remainhots) 后直接用于 limit $remainhots,所以出现了limit -1错误


1314学习网提供解决办法:
打开:source\module\forum\forum_viewthread.php

找到
  1. if($_G['setting']['nofilteredpost'] && $_G['forum_thread']['replies'] > $_G['setting']['postperpage'] && $remainhots) {
复制代码
修改为
  1. if($_G['setting']['nofilteredpost'] && $_G['forum_thread']['replies'] > $_G['setting']['postperpage'] && $remainhots >0) {
复制代码
也就是将 $remainhots 改为 $remainhots >0





上一篇:discuz x3 站点功能-其他-全局签名内容 url代码为什么不可用?
下一篇:Discuz X3去掉贴内左侧信息的等级图标
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 06:58

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表