From de22e50d5a3bb5083ce0d025340123ab638f3ba3 Mon Sep 17 00:00:00 2001 From: zero Date: Tue, 29 Jan 2008 05:51:13 +0000 Subject: [PATCH] =?UTF-8?q?=EC=B5=9C=EA=B7=BC=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=EC=9C=84=EC=A0=AF=EC=9D=98=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3616 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- widgets/newest_images/newest_images.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/widgets/newest_images/newest_images.class.php b/widgets/newest_images/newest_images.class.php index 97d5f147a..ecd3d6dd0 100644 --- a/widgets/newest_images/newest_images.class.php +++ b/widgets/newest_images/newest_images.class.php @@ -69,23 +69,25 @@ $obj->direct_download = 'Y'; $obj->isvalid = 'Y'; + $oDocumentModel = &getModel('document'); + // 정해진 모듈에서 문서별 파일 목록을 구함 $files_output = executeQueryArray("file.getOneFileInDocument", $obj); $files_count = count($files_output->data); + $document_srl_list = array(); + $document_list = array(); + if($files_count>0) { for($i=0;$i<$files_count;$i++) $document_srl_list[] = $files_output->data[$i]->document_srl; - $oDocumentModel = &getModel('document'); $tmp_document_list = $oDocumentModel->getDocuments($document_srl_list); - $document_list = array(); if(count($tmp_document_list)) { foreach($tmp_document_list as $val) $document_list[] = $val; } } $document_count = count($document_list); - $total_count = $widget_info->rows_list_count * $widget_info->cols_list_count; for($i=$document_count;$i<$total_count;$i++) $document_list[] = new DocumentItem(); $widget_info->document_list = $document_list;