summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-06-25 17:26:44 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-06-25 17:26:44 +0200
commitef93bf223a54a3247c177285cc4a333b3a67624d (patch)
tree695e6291a694831fd556a5fe95c5f9fb638a25da /apps
parent09a9f5400e011ed691a7f4faca03f39ac3b5e7ba (diff)
downloadnextcloud-server-ef93bf223a54a3247c177285cc4a333b3a67624d.tar.gz
nextcloud-server-ef93bf223a54a3247c177285cc4a333b3a67624d.zip
Try to conserve some memory. Should fix oc-1106 for master.
Diffstat (limited to 'apps')
-rw-r--r--apps/contacts/ajax/contacts.php2
-rw-r--r--apps/contacts/index.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/contacts/ajax/contacts.php b/apps/contacts/ajax/contacts.php
index 2ce6de1696b..4bb7801cb2d 100644
--- a/apps/contacts/ajax/contacts.php
+++ b/apps/contacts/ajax/contacts.php
@@ -45,7 +45,7 @@ foreach($contacts_alphabet as $contact) {
}
$contacts_addressbook[$contact['addressbookid']]['contacts'][] = array('id' => $contact['id'], 'addressbookid' => $contact['addressbookid'], 'displayname' => htmlspecialchars($display));
}
-
+unset($contacts_alphabet);
uasort($contacts_addressbook, 'cmp');
$tmpl = new OCP\Template("contacts", "part.contacts");
diff --git a/apps/contacts/index.php b/apps/contacts/index.php
index bdb52c123ce..f6b37409ea7 100644
--- a/apps/contacts/index.php
+++ b/apps/contacts/index.php
@@ -28,6 +28,7 @@ $details = array();
if(is_null($id) && count($contacts) > 0) {
$id = $contacts[0]['id'];
}
+unset($contacts);
if(!is_null($id)) {
$vcard = OC_Contacts_App::getContactVCard($id);
$details = OC_Contacts_VCard::structureContact($vcard);
@@ -66,7 +67,6 @@ $tmpl->assign('phone_types', $phone_types);
$tmpl->assign('email_types', $email_types);
$tmpl->assign('categories', $categories);
$tmpl->assign('addressbooks', $addressbooks);
-$tmpl->assign('contacts', $contacts, false);
$tmpl->assign('details', $details );
$tmpl->assign('id',$id);
$tmpl->printPage();