Elgg/Elgg — pull request #5563 by jeabakker (2013-05-30 14:54:47+00:00)
Title: ElggFile->delete() can return false on success or null on failure

If you have a non saved ElggFile (eq user avatar / group icon) and call ElggFile->delete() the result will be false (as parent::delete() returns false)

This can be checked in the action /avatar/remove.

Also if something goes wrong on the ElggFilestore side the result will be null

here is the solution, tested and all still works fine