summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/contacts.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-01-02 20:24:05 +0100
committerThomas Tanghus <thomas@tanghus.net>2012-01-09 20:38:05 +0100
commitd91a4fcaf3ffc0783f7aef6767d7b15773808eb5 (patch)
tree4922a034bf9c293e925ff262b1fa4e22341540a5 /apps/contacts/ajax/contacts.php
parent5e40653713eed01d96841dc93e11534b46a443ee (diff)
downloadnextcloud-server-d91a4fcaf3ffc0783f7aef6767d7b15773808eb5.tar.gz
nextcloud-server-d91a4fcaf3ffc0783f7aef6767d7b15773808eb5.zip
Changed SQL queries for looking up contacts to only query once and sort at the same time.
Diffstat (limited to 'apps/contacts/ajax/contacts.php')
-rw-r--r--apps/contacts/ajax/contacts.php15
1 files changed, 0 insertions, 15 deletions
diff --git a/apps/contacts/ajax/contacts.php b/apps/contacts/ajax/contacts.php
index 54ad3e4c103..cf86764105f 100644
--- a/apps/contacts/ajax/contacts.php
+++ b/apps/contacts/ajax/contacts.php
@@ -12,21 +12,6 @@ OC_JSON::checkAppEnabled('contacts');
$ids = OC_Contacts_Addressbook::activeIds(OC_User::getUser());
$contacts = OC_Contacts_VCard::all($ids);
-//OC_Log::write('contacts','contacts.php: '.count($contacts).' contacts.',OC_Log::DEBUG);
-/*
-$addressbooks = OC_Contacts_Addressbook::active(OC_User::getUser());
-$contacts = array();
-foreach( $addressbooks as $addressbook ){
- $addressbookcontacts = OC_Contacts_VCard::all($addressbook['id']);
- foreach( $addressbookcontacts as $contact ){
- if(is_null($contact['fullname'])){
- continue;
- }
- $contacts[] = $contact;
- }
-}
-usort($contacts,'contacts_namesort');
-*/
$tmpl = new OC_TEMPLATE("contacts", "part.contacts");
$tmpl->assign('contacts', $contacts);
$page = $tmpl->fetchPage();