http://api.drupal.org/api/function/file_field_load/7

When building the $fids array, it doesn't check if !empty($item['fid']), the second loop it does. Patch just adds the check to both loops.

CommentFileSizeAuthor
file_notice.patch676 bytescatch

Comments

yched’s picture

Status: Needs review » Reviewed & tested by the community

Right. Just curious : I'm wondering what were the steps you took that lead to an empty $item['fid'] ?

catch’s picture

@yched: devel generated content with mongodb storage which was being heavily edited - i.e. not really sure. However since there's already a similar check later in the function this looked like an oversight rather than a data issue.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.