Skip to content

Commit 47f2b2c

Browse files
committed
Fix attribute authority (regression)
1 parent 9ab1113 commit 47f2b2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/MetaLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ public function loadSource(array $source): void
195195
}
196196
if (in_array('attributeauthority-remote', $this->types, true)) {
197197
$attributeAuthorities = $entity->getAttributeAuthorities();
198-
if (!empty($attributeAuthorities)) {
198+
if (count($attributeAuthorities) && !empty($attributeAuthorities[0])) {
199199
$this->addMetadata(
200200
$source['src'],
201-
$attributeAuthorities,
201+
$attributeAuthorities[0],
202202
'attributeauthority-remote',
203203
$template
204204
);

0 commit comments

Comments
 (0)