mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 19:32:15 +09:00
document model 의 확장변수 키값을 체크하는 부분의 null체크 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6160 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
38eb756a93
commit
ce3dd3a639
1 changed files with 4 additions and 2 deletions
|
|
@ -435,14 +435,16 @@
|
|||
* $form_include : 글 작성시에 필요한 확장변수의 input form 추가 여부
|
||||
**/
|
||||
function getExtraKeys($module_srl) {
|
||||
if(!$GLOBALS['XE_EXTRA_KEYS'][$module_srl]) {
|
||||
if(is_null($GLOBALS['XE_EXTRA_KEYS'][$module_srl])) {
|
||||
$oExtraVar = &ExtraVar::getInstance($module_srl);
|
||||
$obj->module_srl = $module_srl;
|
||||
$obj->sort_index = 'var_idx';
|
||||
$obj->order = 'asc';
|
||||
$output = executeQueryArray('document.getDocumentExtraKeys', $obj);
|
||||
$oExtraVar->setExtraVarKeys($output->data);
|
||||
$GLOBALS['XE_EXTRA_KEYS'][$module_srl] = $oExtraVar->getExtraVars();
|
||||
$keys = $oExtraVar->getExtraVars();
|
||||
if(!$keys) $keys = array();
|
||||
$GLOBALS['XE_EXTRA_KEYS'][$module_srl] = $keys;
|
||||
}
|
||||
|
||||
return $GLOBALS['XE_EXTRA_KEYS'][$module_srl];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue