- Patch #738332 by catch: fixed E_NOTICE in file_field_load().

merge-requests/26/head
Dries Buytaert 2010-03-11 22:44:44 +00:00
parent 052a1da533
commit cf476fefe3
1 changed files with 3 additions and 1 deletions

View File

@ -209,7 +209,9 @@ function file_field_load($entity_type, $entities, $field, $instances, $langcode,
// Load the files from the files table.
$fids = array();
foreach ($items[$id] as $delta => $item) {
$fids[] = $item['fid'];
if (!empty($item['fid'])) {
$fids[] = $item['fid'];
}
}
$files = file_load_multiple($fids);