I had hundreds of PHP notices when running update.php
* notice: Trying to get property of non-object in /[...]/sites/all/modules/imagefield/imagefield.install on line 220.

CommentFileSizeAuthor
#1 imagefield_file_delete_check.patch655 bytesquicksketch

Comments

quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new655 bytes

The update function wasn't checking that the $file record actually existed before trying to check $file->filepath. It shouldn't have any negative effect. I've committed the attached patch.

Status: Fixed » Closed (fixed)

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