打开/include/taglib/likearticle.lib.php文件
找到
if($keyword != ''){if(!empty($typeid)) {$typeid ="AND arc.typeid IN($typeid) AND arc.id<>'$aid' ";}$query = "SELECT arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepathFROM `dede_archives` arc LEFT JOIN `dede_arctype` tp ON arc.typeid=tp.idwhere arc.arcrank>-1 AND ($keyword) $typeid $orderquery limit 0, $row";}else{if(!empty($typeid)) {$typeid = " arc.typeid IN($typeid) AND arc.id<>'$aid' ";}$query = "SELECT arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepathFROM `dede_archives` arc LEFT JOIN `dede_arctype` tp ON arc.typeid=tp.idWHERE arc.arcrank>-1 AND $typeid $orderquery limit 0, $row";}
改成
if($keyword != ''){if(!empty($typeid)) {$typeid ="AND arc.typeid IN($typeid) AND arc.id<>'$aid' ";}$query = "SELECT arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepathFROM `dede_archives` arc LEFT JOIN `dede_arctype` tp ON arc.typeid=tp.idwhere arc.arcrank>-1 AND ($keyword) $typeid AND arc.id<>'$aid' $orderquery limit 0, $row";}else{if(!empty($typeid)) {$typeid = " arc.typeid IN($typeid) AND arc.id<>'$aid' ";}$query = "SELECT arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepathFROM `dede_archives` arc LEFT JOIN `dede_arctype` tp ON arc.typeid=tp.idWHERE arc.arcrank>-1 AND $typeid AND arc.id<>'$aid' $orderquery limit 0, $row";}