issue 1336 fixed

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10161 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-02-21 08:40:37 +00:00
parent e5c075493c
commit 93a9be41b4

View file

@ -139,11 +139,15 @@
else
{
$fileList = array();
foreach($output->data AS $key=>$value)
if(is_array($output->data))
{
$file = $value;
$file->download_url = $this->getDownloadUrl($file->file_srl, $file->sid);
array_push($fileList, $file);
foreach($output->data as $key=>$value)
{
$file = $value;
$file->download_url = $this->getDownloadUrl($file->file_srl, $file->sid);
array_push($fileList, $file);
}
}
return $fileList;
}