diff --git a/app/Matchers/AuthorityMatcher.php b/app/Matchers/AuthorityMatcher.php index 58e5e5b68..bd5c28180 100644 --- a/app/Matchers/AuthorityMatcher.php +++ b/app/Matchers/AuthorityMatcher.php @@ -34,6 +34,10 @@ public function matchAll(Item $item, $onlyExisting = false) public function match($author, Item $item, $onlyExisting = false) { $parsed = $this::parse($author); + if (!$parsed) { + return collect(); + } + if ($parsed['surname'] && $parsed['name']) { $fullname = sprintf('%s %s', $parsed['name'], $parsed['surname']); } else {