Skip to content

Commit cd37ad0

Browse files
authored
Merge pull request #7108 from sba/patch-5
docs: update errors_list template
2 parents ca27e3a + 62cf0d9 commit cd37ad0

File tree

1 file changed

+9
-7
lines changed
  • user_guide_src/source/libraries/validation

1 file changed

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

0 commit comments

Comments
 (0)