mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 21:32:51 +09:00
글이 없을 경우 확장변수 처리 부분에서 생기는 php오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5982 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fbedbbcad1
commit
0260b0c4a1
1 changed files with 8 additions and 4 deletions
|
|
@ -145,8 +145,10 @@
|
|||
$this->setToAllDocumentExtraVars();
|
||||
|
||||
$output = null;
|
||||
foreach($result as $document_srl => $val) {
|
||||
$output[$document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$document_srl];
|
||||
if(count($result)) {
|
||||
foreach($result as $document_srl => $val) {
|
||||
$output[$document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$document_srl];
|
||||
}
|
||||
}
|
||||
|
||||
return $output;
|
||||
|
|
@ -390,8 +392,10 @@
|
|||
}
|
||||
$this->setToAllDocumentExtraVars();
|
||||
|
||||
foreach($output->data as $number => $document) {
|
||||
$output->data[$number] = $GLOBALS['XE_DOCUMENT_LIST'][$document->document_srl];
|
||||
if(count($output->data)) {
|
||||
foreach($output->data as $number => $document) {
|
||||
$output->data[$number] = $GLOBALS['XE_DOCUMENT_LIST'][$document->document_srl];
|
||||
}
|
||||
}
|
||||
|
||||
return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue