summaryrefslogtreecommitdiff
path: root/modules/file/file.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/file/file.module')
-rw-r--r--modules/file/file.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/file/file.module b/modules/file/file.module
index 0eba84715..84a006dd6 100644
--- a/modules/file/file.module
+++ b/modules/file/file.module
@@ -915,7 +915,7 @@ function file_get_file_reference_count($file, $field = NULL, $field_type = NULL)
if (isset($file->file_field_type) && isset($file->file_field_id)) {
if ($file->file_field_type == $entity_type) {
$info = entity_get_info($entity_type);
- $id = $types[$entity_type]['object keys']['id'];
+ $id = $types[$entity_type]['entity keys']['id'];
foreach ($type_references as $reference) {
if ($file->file_field_id == $reference->$id) {
$reference_count--;