diff options
author | Jochen <rothjochen@gmail.com> | 2019-09-05 19:20:32 +0200 |
---|---|---|
committer | Jochen <rothjochen@gmail.com> | 2019-09-05 19:20:32 +0200 |
commit | a1c83c12d01390face86ac7114d3932e10cb5ace (patch) | |
tree | 9ce9471c9bf47731ffda0277fd631c8d2434e492 /core/templates | |
parent | c6b660099a92ff332e1b3aa924a0a49866eb0a79 (diff) | |
download | nextcloud-server-a1c83c12d01390face86ac7114d3932e10cb5ace.tar.gz nextcloud-server-a1c83c12d01390face86ac7114d3932e10cb5ace.zip |
Prevent undefined for $login['style']
https://github.com/nextcloud/server/pull/16832#discussion_r321075261
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 0039deb5913..c5ef765106a 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 primary <?php p($login['style']); ?>" href="<?php print_unescaped($login['href']); ?>" > + <a class="button primary <?php p(isset($login['style']) ? $login['style'] : ''); ?>" href="<?php print_unescaped($login['href']); ?>" > <?php p($login['name']); ?> </a> <?php endforeach; ?> |