Browse Source

Fixing 'Undefined index: rel' notice in logs

issue-1870-undefined-index-rel
dannylamb 3 years ago committed by GitHub
parent
commit
98342ed70e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Flysystem/Adapter/FedoraAdapter.php

2
src/Flysystem/Adapter/FedoraAdapter.php

@ -152,7 +152,7 @@ class FedoraAdapter implements AdapterInterface {
}
// phpcs:enable
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