diff --git a/src/system/taglib/channel.lib.php b/src/system/taglib/channel.lib.php index f9635a85..7b34e368 100755 --- a/src/system/taglib/channel.lib.php +++ b/src/system/taglib/channel.lib.php @@ -69,7 +69,7 @@ function lib_channel(&$ctag, &$refObj) $totalRow = $dsql->GetTotalRow(); //如果用子栏目模式,当没有子栏目时显示同级栏目 if ($type == 'son' && $reid != 0 && $totalRow == 0) { - $sql = "SELECT * FROM `#@__arctype` WHERE reid='$reid' AND ishidden<>1 ORDER BY sortrank ASC LIMIT 0, $line"; + $sql = "SELECT * FROM `#@__arctype` WHERE reid='$typeid' AND ishidden<>1 ORDER BY sortrank ASC LIMIT 0, $line"; $dsql->SetQuery($sql); $dsql->Execute(); }