openscholar/openscholar — pull request #5327 by shushu (2014-02-17 11:54:18+00:00)
Title: Wrap file_usage_list() with a function that can get boolean to avoid fatal errors

#5279
Seems this caused when trying to delete cropped files. once file_load() didn't return a file object, file_usage_list() gave a fatal error. By wrapping it we avoid any future failures as well.