mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-02-01 09:39:58 +09:00
check array before foreach loop
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12463 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7760f1b5c1
commit
a36935fe7d
1 changed files with 9 additions and 6 deletions
|
|
@ -435,13 +435,16 @@ class documentAdminController extends document
|
||||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||||
if($oCacheHandler->isSupport())
|
if($oCacheHandler->isSupport())
|
||||||
{
|
{
|
||||||
foreach($document_srl_list as $document_srl)
|
if(is_array($document_srl_list))
|
||||||
{
|
{
|
||||||
$cache_key = 'object:'.$document_srl;
|
foreach($document_srl_list as $document_srl)
|
||||||
$oCacheHandler->delete($cache_key);
|
{
|
||||||
$cache_key_item = 'object_document_item:'.$document_srl;
|
$cache_key = 'object:'.$document_srl;
|
||||||
$oCacheHandler->delete($cache_key_item);
|
$oCacheHandler->delete($cache_key);
|
||||||
$oCacheHandler->invalidateGroupKey('commentList_' . $document_srl);
|
$cache_key_item = 'object_document_item:'.$document_srl;
|
||||||
|
$oCacheHandler->delete($cache_key_item);
|
||||||
|
$oCacheHandler->invalidateGroupKey('commentList_' . $document_srl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$oCacheHandler->invalidateGroupKey('documentList');
|
$oCacheHandler->invalidateGroupKey('documentList');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue