mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 09:52:17 +09:00
카테고리 정보 구할때 $node object에 group_srls를 추가시 생기는 non object 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2933 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b5755133d3
commit
cc74a3f5ec
1 changed files with 10 additions and 2 deletions
|
|
@ -334,8 +334,16 @@
|
|||
$output = executeQuery('document.getCategory', $args);
|
||||
|
||||
$node = $output->data;
|
||||
if($node->group_srls) $node->group_srls = explode(',',$node->group_srls);
|
||||
else $node->group_srls = array();
|
||||
if(!$node) return;
|
||||
|
||||
if($node->group_srls) {
|
||||
$group_srls = explode(',',$node->group_srls);
|
||||
unset($node->group_srls);
|
||||
$node->group_srls = explode(',',$node->group_srls);
|
||||
} else {
|
||||
unset($node->group_srls);
|
||||
$node->group_srls = array();
|
||||
}
|
||||
return $node;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue