• file_entity_file_update() saves metadata, then deletes metadata, then saves metadata again. (lines 101-115)
  • conditional on line 120 will never evaluate to true
  • conditional on line 120 does not account for empty `$file->metadata` generating php notices for invalid index

http://cgit.drupalcode.org/file_entity/commit/file_entity.file.inc?id=03...

Comments

dave reid’s picture

dave reid’s picture

Status: Active » Closed (duplicate)