diff --git a/src/system/typelink/typeunit.class.admin.php b/src/system/typelink/typeunit.class.admin.php index 31a18c47..e7a6c503 100755 --- a/src/system/typelink/typeunit.class.admin.php +++ b/src/system/typelink/typeunit.class.admin.php @@ -92,6 +92,7 @@ class TypeUnit } $this->dsql->SetQuery("SELECT id,typedir,typename,ispart,sortrank,ishidden FROM `#@__arctype` WHERE reid=0 ORDER BY sortrank"); $this->dsql->Execute(0); + $i = 0; while ($row = $this->dsql->GetObject(0)) { if ($cfg_admin_channel == 'array' && !in_array($row->id, $admin_catalogs)) { continue; @@ -152,6 +153,10 @@ class TypeUnit echo ""; } echo ""; + $i++; + } + if ($i === 0) { + echo "
暂无栏目,请先添加栏目
"; } } /**