summaryrefslogtreecommitdiffstats
path: root/apps/contacts/index.php
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-08-09 13:53:58 +0200
committerJakob Sack <kde@jakobsack.de>2011-08-09 13:53:58 +0200
commit76fc062f27a178be97b2f4bf285f7f07c6361f60 (patch)
treed69727c82e394f22bd08be14d146890592da3d70 /apps/contacts/index.php
parent4e5b6f72c17ec361757495e89d3f1929f3981dbb (diff)
downloadnextcloud-server-76fc062f27a178be97b2f4bf285f7f07c6361f60.tar.gz
nextcloud-server-76fc062f27a178be97b2f4bf285f7f07c6361f60.zip
Some more work on the address book
Diffstat (limited to 'apps/contacts/index.php')
-rw-r--r--apps/contacts/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/contacts/index.php b/apps/contacts/index.php
index 1e01b1c9fbd..4330c31043c 100644
--- a/apps/contacts/index.php
+++ b/apps/contacts/index.php
@@ -63,7 +63,8 @@ usort($contacts,'contacts_namesort');
$details = array();
if( !is_null($id) || count($contacts)){
- $contact = OC_Contacts_Addressbook::findCard(is_null($id)?$contacts[0]['id']:$id);
+ if(is_null($id)) $id = $contacts[0]['id'];
+ $contact = OC_Contacts_Addressbook::findCard($id);
$vcard = Sabre_VObject_Reader::read($contact['carddata']);
$details = OC_Contacts_Addressbook::structureContact($vcard);
}