[8] ErrorException in CategoryModel.php line 227

未定义数组下标: 0

  1. }else{
  2. $catlist = $this->getCategory(1);
  3. if ($flag == 0) {
  4. $catlist = $this->clearLink($catlist);//去除外部链接的栏目
  5. }
  6. //type为parent
  7. if ($type == 'parent') {
  8. $parent = $this->getParents($catlist, $cidarr[0]);
  9. $catlist = $this->unlimitedForLayer($catlist, 'child', $parent[0]['id']);
  10. }else{
  11. //type为top,忽略cid
  12. if($cid == 0 || $type == 'top') {
  13. $catlist = $this->unlimitedForLayer($catlist);
  14. }else {
  15. if ($type == 'self') {
  16. //同级分类