aboutsummaryrefslogtreecommitdiffstats
path: root/apps/contacts
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-08-21 06:22:33 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-08-22 12:40:35 +0200
commit78b7e28ce064524564c221f6920d2724e49478fb (patch)
treefe0072dc316a3a19307563b7ee826f7eed6ace79 /apps/contacts
parent5c1dd82998bff610d819550d5fd86b05248ebff2 (diff)
downloadnextcloud-server-78b7e28ce064524564c221f6920d2724e49478fb.tar.gz
nextcloud-server-78b7e28ce064524564c221f6920d2724e49478fb.zip
Removed unused variable.
Diffstat (limited to 'apps/contacts')
-rw-r--r--apps/contacts/index.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/contacts/index.php b/apps/contacts/index.php
index c35e1b85d4e..5cd58c5c43c 100644
--- a/apps/contacts/index.php
+++ b/apps/contacts/index.php
@@ -14,12 +14,12 @@ OCP\App::checkAppEnabled('contacts');
// Get active address books. This creates a default one if none exists.
$ids = OC_Contacts_Addressbook::activeIds(OCP\USER::getUser());
-$has_contacts = (count(OC_Contacts_VCard::all($ids, 0, 1)) > 0
- ? true
+$has_contacts = (count(OC_Contacts_VCard::all($ids, 0, 1)) > 0
+ ? true
: false); // just to check if there are any contacts.
if($has_contacts === false) {
- OCP\Util::writeLog('contacts',
- 'index.html: No contacts found.',
+ OCP\Util::writeLog('contacts',
+ 'index.html: No contacts found.',
OCP\Util::DEBUG);
}
@@ -28,7 +28,6 @@ OCP\App::setActiveNavigationEntry('contacts_index');
// Load a specific user?
$id = isset( $_GET['id'] ) ? $_GET['id'] : null;
-$property_types = OC_Contacts_App::getAddPropertyOptions();
$phone_types = OC_Contacts_App::getTypesOfProperty('TEL');
$email_types = OC_Contacts_App::getTypesOfProperty('EMAIL');
$categories = OC_Contacts_App::getCategories();
@@ -57,9 +56,8 @@ OCP\Util::addStyle('contacts', 'contacts');
$tmpl = new OCP\Template( "contacts", "index", "user" );
$tmpl->assign('uploadMaxFilesize', $maxUploadFilesize, false);
-$tmpl->assign('uploadMaxHumanFilesize',
+$tmpl->assign('uploadMaxHumanFilesize',
OCP\Util::humanFileSize($maxUploadFilesize), false);
-$tmpl->assign('property_types', $property_types, false);
$tmpl->assign('phone_types', $phone_types, false);
$tmpl->assign('email_types', $email_types, false);
$tmpl->assign('categories', $categories, false);