Compare commits

...

1 Commits

Author SHA1 Message Date
dannylamb 98342ed70e
Fixing 'Undefined index: rel' notice in logs 3 years ago
  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