aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-10-15 11:44:42 -0700
committerLukas Reschke <lukas@statuscode.ch>2012-10-15 11:44:42 -0700
commit9458a6c10e63829847c533a04b5c25ca646105a9 (patch)
treef6a4a8dedeae2719c39ea9d10b5aced71d7f09fe
parentfa71e51e679b7a25de7ff8af31119721b6f13d3c (diff)
parentd7a45474824bdfe1b34cbb35c01e46f5217aeb06 (diff)
downloadnextcloud-server-9458a6c10e63829847c533a04b5c25ca646105a9.tar.gz
nextcloud-server-9458a6c10e63829847c533a04b5c25ca646105a9.zip
Merge pull request #35 from visit1985/logonpage
avoid undefined index warning on login page
-rw-r--r--core/templates/login.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/login.php b/core/templates/login.php
index a3a62b97958..0768b664c6f 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -3,14 +3,14 @@
<fieldset>
<?php if(!empty($_['redirect'])) { echo '<input type="hidden" name="redirect_url" value="'.$_['redirect'].'" />'; } ?>
<ul>
- <?php if($_['invalidcookie']): ?>
+ <?php if(isset($_['invalidcookie']) && ($_['invalidcookie'])): ?>
<li class="errors">
<?php echo $l->t('Automatic logon rejected!'); ?><br>
<small><?php echo $l->t('If you did not change your password recently, your account may be compromised!'); ?></small><br>
<small><?php echo $l->t('Please change your password to secure your account again.'); ?></small>
</li>
<?php endif; ?>
- <?php if($_['invalidpassword']): ?>
+ <?php if(isset($_['invalidpassword']) && ($_['invalidpassword'])): ?>
<a href="./core/lostpassword/"><li class="errors">
<?php echo $l->t('Lost your password?'); ?>
</li></a>