문서 아이템 구할때 빈 아이템 구할때에는 캐시하지 않고 직접 객체 생성하여 return하도록 코드 수정. (위젯등에서 하나의 글만 나타나는 오류 수정)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3530 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-01-15 11:37:10 +00:00
parent 0f9ec51d0a
commit effe42d353

View file

@ -24,6 +24,8 @@
* @brief 문서 가져오기
**/
function getDocument($document_srl=0, $is_admin = false) {
if(!$document_srl) return new documentItem();
if(!$GLOBALS['__DocumentItem__'][$document_srl]) {
$oDocument = new documentItem($document_srl);
if($is_admin) $oDocument->setGrant();