diff options
author | Jochen <rothjochen@gmail.com> | 2019-09-09 20:25:16 +0200 |
---|---|---|
committer | Jochen <rothjochen@gmail.com> | 2019-09-09 20:25:16 +0200 |
commit | 493a756f3bb119ba365dbe26a0ae8e699d02feda (patch) | |
tree | 1a0d75d70f2cb38cf1b08838bc98788c430a3683 /core/templates | |
parent | d38f8dc746cc94feb3422704fe9228a3bd5c8893 (diff) | |
download | nextcloud-server-493a756f3bb119ba365dbe26a0ae8e699d02feda.tar.gz nextcloud-server-493a756f3bb119ba365dbe26a0ae8e699d02feda.zip |
Add null coalesce for label and style attribute
https://github.com/nextcloud/server/pull/16832#discussion_r322380822
Signed-off-by: Jochen <rothjochen@gmail.com>
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/login.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/login.php b/core/templates/login.php index b6583f70ac1..4daae2cb96d 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -8,7 +8,7 @@ script('core', 'dist/login'); <?php if (!empty($_['alt_login'])) { ?> <div id="alternative-logins"> <?php foreach($_['alt_login'] as $login): ?> - <a class="button <?php p(isset($login['style']) ? $login['style'] : ''); ?>" aria-label="<?php p($login['label']); ?>" href="<?php print_unescaped($login['href']); ?>" > + <a class="button <?php p($login['style'] ?? ''); ?>" aria-label="<?php p($login['label'] ?? ''); ?>" href="<?php print_unescaped($login['href']); ?>" > <?php p($login['name']); ?> </a> <?php endforeach; ?> |