#17223844 첨부파일 목록에서 존재하지 않는 빈 파일이 출력되는 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4475 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-08-29 16:43:45 +00:00
parent e1285f9811
commit a93aa4afcc

View file

@ -55,7 +55,6 @@
}
// 목록의 loop를 돌면서 document를 구하기
$file_count = count($output->data);
if($file_count) {
$document_srl_list = array();
@ -73,8 +72,9 @@
$comment_list[$val->comment_srl] = $val->document_srl;
}
for($i=1; $i <= count($output->data); $i++) {
$output->data[$i]->target_document_srl = $comment_list[$output->data[$i]->upload_target_srl];
$file_list_keys = array_keys($output->data);
for($i=0; $i < $file_count; $i++) {
$output->data[$file_list_keys[$i]]->target_document_srl = $comment_list[$output->data[$file_list_keys[$i]]->upload_target_srl];
}
foreach($comment_output as $val) {