diff --git a/core/includes/entity.inc b/core/includes/entity.inc index 8ff1590..71dff6a 100644 --- a/core/includes/entity.inc +++ b/core/includes/entity.inc @@ -89,7 +89,7 @@ function entity_get_info($entity_type = NULL) { ); $name = strtok($view_mode['name'], '.'); $name = strtok('.'); - if (isset($view_mode['type']) && !empty($name)) { + if (isset($view_mode['type']) && !empty($name) && isset($entity_info[$view_mode['type']])) { $entity_info[$view_mode['type']]['view modes'][$name] = $definition; } }