Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-12-05 12:03:39 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2016-12-05 12:03:39 +0300
commit9e66d5d7cf455f556358a1c33e2904124573b753 (patch)
treec62781861cddfac3bcd98889e101322968307840 /settings/templates
parent2f517899a2f3c4d014b5b737c4f652ed5ae2277f (diff)
hide password recovery note if email address can't be set
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/personal.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index ed0808432f4..a14982b9b74 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -97,8 +97,10 @@
<?php if(!$_['displayNameChangeSupported']) { ?>
<span><?php if(isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
<?php } ?>
- <br />
- <em><?php p($l->t('For password recovery and notifications')); ?></em>
+ <?php if($_['displayNameChangeSupported']) { ?>
+ <br />
+ <em><?php p($l->t('For password recovery and notifications')); ?></em>
+ <?php } ?>
<span class="icon-checkmark hidden"/>
<input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>">
</form>