在dedecms中安装了“站内新闻”模块后,更新到栏目的时候,出现错误提示:Using $this when not in object context in C:\AppServ\www\site1\include\taglib\mynews.lib.php on line 16
。解决办法如下: 修改include\taglib\mynews.lib.php 第 16 行 if($envs['typeid'] > 0) $idsql = ” where typeid=’”.GetTopid($this->TypeID).”‘ “; if($envs['typeid'] > 0) $idsql = ” where typeid=’”.GetTopid($refObj->TypeID).”‘ “; 就可以解决此BUG。 |
|