getExtraVars() 항상 array로 반환될 수 있도록 수정

This commit is contained in:
conory 2018-01-20 18:45:15 +09:00
parent 185a2657e6
commit b180270e08
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ class ExtraVar
* Current module's Set of ExtraItem
* @var ExtraItem[]
*/
var $keys = null;
var $keys = array();
/**
* Get instance of ExtraVar (singleton)

View file

@ -488,7 +488,7 @@ class documentModel extends document
$this->setToAllDocumentExtraVars();
}
if(is_array($GLOBALS['XE_EXTRA_VARS'][$document_srl])) ksort($GLOBALS['XE_EXTRA_VARS'][$document_srl]);
return $GLOBALS['XE_EXTRA_VARS'][$document_srl];
return $GLOBALS['XE_EXTRA_VARS'][$document_srl] ?: array();
}
/**