Merge pull request #33118 from nextcloud/fix/address-book-export

Fix empty address books being exported
pull/33180/head
blizzz 2022-07-08 22:13:19 +07:00 committed by GitHub
commit 927b6d635f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

@ -131,6 +131,10 @@ class ContactsMigrator implements IMigrator, ISizeEstimationMigrator {
}
}
if (count($vCards) === 0) {
throw new InvalidAddressBookException();
}
return [
'name' => $addressBookNode->getName(),
'displayName' => $addressBookInfo['{DAV:}displayname'],