diff options
author | Brice Maron <brice@bmaron.net> | 2013-03-02 16:09:36 +0100 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2013-03-02 16:09:36 +0100 |
commit | 050de008b1f648db4bb1381620a6d5ca3ab8583b (patch) | |
tree | 93b1eafce448248f18dfd6f576cfdc97eafa411a /core | |
parent | d3e88e6a8c715b13f06424ad97c284151f128353 (diff) | |
download | nextcloud-server-050de008b1f648db4bb1381620a6d5ca3ab8583b.tar.gz nextcloud-server-050de008b1f648db4bb1381620a6d5ca3ab8583b.zip |
Avoid to display empty DisplayNames for menu and title
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/layout.user.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 2b53cc0ae5d..c823ee6b3ac 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -2,7 +2,7 @@ <html class="ng-csp"> <head> <title><?php p(!empty($_['application'])?$_['application'].' | ':'') ?>ownCloud - <?php p(!empty($_['user_displayname'])?' ('.$_['user_displayname'].') ':'') ?></title> + <?php p(trim($_['user_displayname']) != '' ?' ('.$_['user_displayname'].') ':'') ?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="apple-itunes-app" content="app-id=543672169"> <link rel="shortcut icon" href="<?php print_unescaped(image_path('', 'favicon.png')); ?>" /> @@ -34,7 +34,7 @@ <ul id="settings" class="svg"> <span id="expand"> - <span id="expandDisplayName"><?php p($_['user_displayname']) ?></span> + <span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span> <img class="svg" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" /> </span> <div id="expanddiv"> |