#867928: file_get_file_references() is still broken.

From: Damien Tournoud <damien@commerceguys.com>


---
 file/file.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git modules/file/file.module modules/file/file.module
index 4075d65..b309090 100644
--- modules/file/file.module
+++ modules/file/file.module
@@ -1017,7 +1017,7 @@ function file_get_file_references($file, $field = NULL, $age = FIELD_LOAD_REVISI
   $fields = isset($field) ? array($field['field_name'] => $field) : field_info_fields();
 
   foreach ($fields as $field_name => $file_field) {
-    if ((empty($field_type) || $field['type'] == $field_type) && !isset($references[$field_name])) {
+    if ((empty($field_type) || $file_field['type'] == $field_type) && !isset($references[$field_name])) {
       // Get each time this file is used within a field.
       $query = new EntityFieldQuery();
       $query
