Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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'])
.
Comment | File | Size | Author |
---|---|---|---|
#1 | imagefield_crop-file_load_test-1973388.patch | 492 bytes | jweowu |
Comments
Comment #1
jweowu CreditAttribution: jweowu commented