Skip to content

Commit

Permalink
Fix attribute authority (regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Oct 16, 2023
1 parent 7c64e7b commit d4dbae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MetaLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ public function loadSource(array $source): void
}
if (in_array('attributeauthority-remote', $this->types, true)) {
$attributeAuthorities = $entity->getAttributeAuthorities();
if (!empty($attributeAuthorities)) {
if (count($attributeAuthorities) && !empty($attributeAuthorities[0])) {
$this->addMetadata(
$source['src'],
$attributeAuthorities,
$attributeAuthorities[0],
'attributeauthority-remote',
$template
);
Expand Down

0 comments on commit d4dbae6

Please sign in to comment.