Browse Source

Merge 98342ed70e into b8f0b9c966

pull/849/merge
dannylamb 10 months ago committed by GitHub
parent
commit
a1bf3760df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/Flysystem/Adapter/FedoraAdapter.php

2
src/Flysystem/Adapter/FedoraAdapter.php

@ -162,7 +162,7 @@ class FedoraAdapter implements AdapterInterface {
$links = Header::parse($response->getHeader('Link'));
foreach ($links as $link) {
if ($link['rel'] == 'type' && $link[0] == '<http://www.w3.org/ns/ldp#NonRDFSource>') {
if (isset($link['rel']) && $link['rel'] == 'type' && $link[0] == '<http://www.w3.org/ns/ldp#NonRDFSource>') {
$type = 'file';
break;
}

Loading…
Cancel
Save