mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Fix empty address books being exported
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
de3504150c
commit
5f31d4b0bf
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'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue