Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/contacts/index.php')
-rw-r--r--apps/contacts/index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/contacts/index.php b/apps/contacts/index.php
index 0d4ff83ef81..a8926cd96fd 100644
--- a/apps/contacts/index.php
+++ b/apps/contacts/index.php
@@ -60,6 +60,9 @@ $contacts = array();
foreach( $openaddressbooks as $addressbook ){
$addressbookcontacts = OC_Contacts_Addressbook::allCards($addressbook);
foreach( $addressbookcontacts as $contact ){
+ if(is_null($contact['fullname'])){
+ continue;
+ }
$contacts[] = array( 'name' => $contact['fullname'], 'id' => $contact['id'] );
}
}