summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-08-09 18:00:14 +0200
committerJakob Sack <kde@jakobsack.de>2011-08-09 18:00:14 +0200
commitce76cece09d751c27c2364d31e7b93ae3df80cc8 (patch)
tree92e0123c4597cecbb2ef732f9eba7a4a620fc8c0 /apps
parent987ce6b4bd49cd991dc79705adf56e22805a0ba6 (diff)
downloadnextcloud-server-ce76cece09d751c27c2364d31e7b93ae3df80cc8.tar.gz
nextcloud-server-ce76cece09d751c27c2364d31e7b93ae3df80cc8.zip
Remove warning
Diffstat (limited to 'apps')
-rw-r--r--apps/contacts/templates/part.details.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/contacts/templates/part.details.php b/apps/contacts/templates/part.details.php
index 0d738b5a0a4..e463459e78c 100644
--- a/apps/contacts/templates/part.details.php
+++ b/apps/contacts/templates/part.details.php
@@ -1,10 +1,15 @@
<?php if(array_key_exists('PHOTO',$_['details'])): ?>
<img src="photo.php?id=<?php echo $_['id']; ?>">
<?php endif; ?>
-<?php echo $this->inc('part.property', array('property' => $_['details']['FN'][0])); ?>
+
+<?php if(array_key_exists('FN',$_['details'])): ?>
+ <?php echo $this->inc('part.property', array('property' => $_['details']['FN'][0])); ?>
+<?php endif; ?>
+
<?php if(isset($_['details']['BDAY'])): // Emails first ?>
<?php echo $this->inc('part.property', array('property' => $_['details']['BDAY'][0])); ?>
<?php endif; ?>
+
<?php if(isset($_['details']['ORG'])): // Emails first ?>
<?php echo $this->inc('part.property', array('property' => $_['details']['ORG'][0])); ?>
<?php endif; ?>
@@ -17,6 +22,7 @@
<?php endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
+
<div id="contacts_cardoptions">
<a id="contacts_deletecard"><img src="../../core/img/actions/delete.png"></a>
<a id="contacts_addproperty"><img src="../../core/img/actions/download.png"></a>