From 3c3262bd681a3c2d14b03fb40e13e89bd0e2f0c0 Mon Sep 17 00:00:00 2001 From: ezoller Date: Wed, 16 Dec 2020 20:15:42 +0000 Subject: [PATCH] check for fedora key in flysystem --- src/EventGenerator/EventGenerator.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/EventGenerator/EventGenerator.php b/src/EventGenerator/EventGenerator.php index b986746d..0184e6a3 100644 --- a/src/EventGenerator/EventGenerator.php +++ b/src/EventGenerator/EventGenerator.php @@ -92,8 +92,10 @@ class EventGenerator implements EventGeneratorInterface { ]; $flysystem_config = Settings::get('flysystem'); - $fedora_url = $flysystem_config['fedora']['config']['root']; - $event["target"] = $fedora_url; + if (array_key_exists('fedora', $flysystem_config)) { + $fedora_url = $flysystem_config['fedora']['config']['root']; + $event["target"] = $fedora_url; + } $entity_type = $entity->getEntityTypeId(); if ($data["event"] == "Generate Derivative") {