diff --git a/apps/contacts/index.php b/apps/contacts/index.php index e5098bb7a8..de7b56dd1a 100644 --- a/apps/contacts/index.php +++ b/apps/contacts/index.php @@ -66,9 +66,9 @@ foreach( $openaddressbooks as $addressbook ){ } usort($contacts,'contacts_namesort'); -$details = array(); -if( !is_null($id) || count($contacts)){ +$details = array(); +if( !is_null($id)/* || count($contacts)*/){ if(is_null($id)) $id = $contacts[0]['id']; $vcard = OC_Contacts_App::getContactVCard($id); $details = OC_Contacts_VCard::structureContact($vcard); diff --git a/apps/contacts/templates/index.php b/apps/contacts/templates/index.php index 630dca41b2..649c4807dd 100644 --- a/apps/contacts/templates/index.php +++ b/apps/contacts/templates/index.php @@ -15,5 +15,12 @@ OC_Util::addStyle('contacts','formtastic');