fix #2185 게시판 카테고리 및 메뉴 관리가 동작하지 않을 수 있는 문제 고침

This commit is contained in:
bnu 2017-12-04 12:28:00 +09:00 committed by Kijin Sung
parent 0b44e47d65
commit 1943289bb8
3 changed files with 33 additions and 24 deletions

View file

@ -2278,13 +2278,13 @@ class documentController extends document
// Get data of the child nodes
if($category_srl && $tree[$category_srl]) $child_buff = $this->getXmlTree($tree[$category_srl], $tree, $site_srl, $xml_header_buff);
// List variables
$expand = $node->expand;
$group_srls = $node->group_srls;
$mid = $node->mid;
$module_srl = $node->module_srl;
$parent_srl = $node->parent_srl;
$color = $node->color;
$description = $node->description;
$expand = ($node->expand) ? $node->expand : 'N';
$group_srls = ($node->group_srls) ? $node->group_srls : '';
$mid = ($node->mid) ? $node->mid : '';
$module_srl = ($node->module_srl) ? $node->parent_srl : '';
$parent_srl = ($node->parent_srl) ? $node->parent_srl : '';
$color = ($node->color) ? $node->color : '';
$description = ($node->description) ? $node->description : '';
// If node->group_srls value exists
if($group_srls) $group_check_code = sprintf('($is_admin==true||(is_array($group_srls)&&count(array_intersect($group_srls, array(%s)))))',$group_srls);
else $group_check_code = "true";