Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit d2e9003

Browse files
committed
Fix validation bug on account update form
1 parent 231a166 commit d2e9003

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/templates/account.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<?php echo $page->text()->kirbytext() ?>
1414

15-
<?php if(r::is('post') and get('update')) { ?>
15+
<?php if(isset($_POST['update'])) { ?>
1616
<div class="uk-alert uk-alert-warning">
1717
<p>
1818
<?php
@@ -41,7 +41,7 @@
4141
</div>
4242
<?php } ?>
4343

44-
<?php if(r::is('post') and get('delete')) { ?>
44+
<?php if(isset($_POST['delete'])) { ?>
4545
<div class="uk-alert uk-alert-danger">
4646
<p>
4747
<?php

0 commit comments

Comments
 (0)