summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-01-20 10:27:50 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-01-20 10:27:50 +0100
commit2fe6513557e22653551cfe59c006282c3793b1b9 (patch)
tree535dbef8627f105026105092da53ffb846cb0370
parent2ac015256fda60f684952131f220cd3db5a616ba (diff)
parent956e17d0081e190e772ebb7d68acd6f33d93a4ed (diff)
downloadnextcloud-server-2fe6513557e22653551cfe59c006282c3793b1b9.tar.gz
nextcloud-server-2fe6513557e22653551cfe59c006282c3793b1b9.zip
Merge pull request #13454 from owncloud/improve-empty-displayname
also show message for empty display name if change of it isn't allowed
-rw-r--r--settings/templates/personal.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index 978174cc683..7d7b6ec8176 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -106,7 +106,7 @@ if($_['displayNameChangeSupported']) {
?>
<div class="section">
<h2><?php echo $l->t('Full Name');?></h2>
- <span><?php p($_['displayName'])?></span>
+ <span><?php if(isset($_['displayName'][0])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
</div>
<?php
}
@@ -130,7 +130,7 @@ if($_['passwordChangeSupported']) {
?>
<div class="section">
<h2><?php echo $l->t('Email'); ?></h2>
- <span><?php if($_['email']) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
+ <span><?php if(isset($_['email'][0])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
</div>
<?php
}