diff --git a/plugins/relationships/entity_from_field.inc b/plugins/relationships/entity_from_field.inc index d4880c6..fdffc41 100644 --- a/plugins/relationships/entity_from_field.inc +++ b/plugins/relationships/entity_from_field.inc @@ -185,7 +185,7 @@ function ctools_entity_from_field_context($context, $conf) { $loaded_to_entity = array_shift($loaded_to_entity); // Pass current user account and entity type to access callback. - if (function_exists($to_entity_info['access callback']) && !call_user_func($to_entity_info['access callback'], 'view', $loaded_to_entity, $account, $to_entity)) { + if (isset($to_entity_info['access callback']) && function_exists($to_entity_info['access callback']) && !call_user_func($to_entity_info['access callback'], 'view', $loaded_to_entity)) { return ctools_context_create_empty('entity:' . $to_entity, NULL); } else {