diff --git a/src/system/taglib/channelartlist.lib.php b/src/system/taglib/channelartlist.lib.php index a5ec030a..54578a30 100755 --- a/src/system/taglib/channelartlist.lib.php +++ b/src/system/taglib/channelartlist.lib.php @@ -42,11 +42,11 @@ function lib_channelartlist(&$ctag, &$refObj) $tpsql = " id IN($typeid) AND ishidden<>1 "; } } - $dsql->SetQuery("SELECT * FROM `#@__arctype` WHERE $tpsql ORDER BY sortrank ASC LIMIT $totalnum"); //否定指定栏目 if ($notypeid!=0) { $tpsql = $tpsql."and not(id in($notypeid))"; } + $dsql->SetQuery("SELECT * FROM `#@__arctype` WHERE $tpsql ORDER BY sortrank ASC LIMIT $totalnum"); $dsql->Execute(); while ($row = $dsql->GetArray()) { $typeids[] = $row;