From 33e5e7388c217d0fe3ce4ef11f0e82664b94bd36 Mon Sep 17 00:00:00 2001 From: ajstanley Date: Wed, 26 Jun 2024 15:23:58 -0300 Subject: [PATCH] check added --- islandora.module | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/islandora.module b/islandora.module index 9f7c5d421..58403af5c 100644 --- a/islandora.module +++ b/islandora.module @@ -546,8 +546,11 @@ function islandora_entity_view(array &$build, EntityInterface $entity, EntityVie // Ensure the entity matches the route. if ($entity === $route_match_item) { $flysystem_config = Settings::get('flysystem'); - $fedora_root = $flysystem_config['fedora']['config']['root']; - $fedora_root = rtrim($fedora_root, '/'); + $fedora_root = NULL; + if (isset($flysystem_config['fedora']['config']['root'])) { + $fedora_root = $flysystem_config['fedora']['config']['root']; + $fedora_root = rtrim($fedora_root, '/'); + } if ($display->getComponent('field_gemini_uri') && $fedora_root) { $mapper = \Drupal::service('islandora.entity_mapper'); if ($entity->getEntityTypeId() == 'media') {