Skip to content

Commit 62cf0d9

Browse files
authored
revert changes, just put if !empty around
1 parent 816cce7 commit 62cf0d9

File tree

1 file changed

+6
-4
lines changed
  • user_guide_src/source/libraries/validation

1 file changed

+6
-4
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php if (! empty($errors)): ?>
2-
<div class="alert alert-danger">
3-
<?php foreach ($errors as $field => $error): ?>
4-
<p><?= esc($error) ?></p>
5-
<?php endforeach ?>
2+
<div class="alert alert-danger" role="alert">
3+
<ul>
4+
<?php foreach ($errors as $error): ?>
5+
<li><?= esc($error) ?></li>
6+
<?php endforeach ?>
7+
</ul>
68
</div>
79
<?php endif ?>

0 commit comments

Comments
 (0)