mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
문서 아이템 구할때 빈 아이템 구할때에는 캐시하지 않고 직접 객체 생성하여 return하도록 코드 수정. (위젯등에서 하나의 글만 나타나는 오류 수정)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3530 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0f9ec51d0a
commit
effe42d353
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue