We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca27e3a + 62cf0d9 commit cd37ad0Copy full SHA for cd37ad0
user_guide_src/source/libraries/validation/030.php
@@ -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>
+<?php if (! empty($errors)): ?>
+ <div class="alert alert-danger" role="alert">
+ <ul>
+ <?php foreach ($errors as $error): ?>
+ <li><?= esc($error) ?></li>
+ <?php endforeach ?>
+ </ul>
8
+ </div>
9
+<?php endif ?>
0 commit comments