diff --git a/src/Flysystem/Adapter/FedoraAdapter.php b/src/Flysystem/Adapter/FedoraAdapter.php index 6ee588b5d..fd5d84530 100644 --- a/src/Flysystem/Adapter/FedoraAdapter.php +++ b/src/Flysystem/Adapter/FedoraAdapter.php @@ -152,7 +152,7 @@ protected function getMetadataFromHeaders(Response $response) { } // phpcs:enable foreach ($links as $link) { - if ($link['rel'] == 'type' && $link[0] == '') { + if (isset($link['rel']) && $link['rel'] == 'type' && $link[0] == '') { $type = 'file'; break; }