I hit a situation where $input['fid'] wasn't valid. An edge case, no doubt, but we can trivially prevent this function throwing PHP errors by checking the return value of the file_load($input['fid']).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jweowu’s picture

Status: Active » Needs review
FileSize
492 bytes