From d4dbae612f07260f2a4d69577225a6777ae3cfe5 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Mon, 16 Oct 2023 18:31:17 +0200 Subject: [PATCH] Fix attribute authority (regression) --- src/MetaLoader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MetaLoader.php b/src/MetaLoader.php index 291069c..3becfc1 100644 --- a/src/MetaLoader.php +++ b/src/MetaLoader.php @@ -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 );