mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 01:42:14 +09:00
Fix caching of nonexistent documents
존재하지 않는 문서가 캐싱되어 버려서 나중에 해당 문서가 존재하게 되어도 불러올 수 없는 문제를 수정함 GPL/LGPL 듀얼 라이선스로 XE에서도 적용할 수 있도록 허용함
This commit is contained in:
parent
455e39cbba
commit
92d8f17482
1 changed files with 10 additions and 1 deletions
|
|
@ -141,10 +141,19 @@ class documentModel extends document
|
|||
if(!$GLOBALS['XE_DOCUMENT_LIST'][$document_srl])
|
||||
{
|
||||
$oDocument = new documentItem($document_srl, $load_extra_vars, $columnList);
|
||||
if(!$oDocument->isExists())
|
||||
{
|
||||
return $oDocument;
|
||||
}
|
||||
|
||||
$GLOBALS['XE_DOCUMENT_LIST'][$document_srl] = $oDocument;
|
||||
if($load_extra_vars) $this->setToAllDocumentExtraVars();
|
||||
}
|
||||
if($is_admin) $GLOBALS['XE_DOCUMENT_LIST'][$document_srl]->setGrant();
|
||||
|
||||
if($is_admin)
|
||||
{
|
||||
$GLOBALS['XE_DOCUMENT_LIST'][$document_srl]->setGrant();
|
||||
}
|
||||
|
||||
return $GLOBALS['XE_DOCUMENT_LIST'][$document_srl];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue