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']).

Comments

jweowu’s picture

Status: Active » Needs review
StatusFileSize
new492 bytes