Skip to content

Commit c259561

Browse files
committed
check if for failures AND errors
otherwise the result is empty for errors. See: https://gist.github.com/pfefferle/69e9cc0451fce28125334f8d09713c8d for some test data
1 parent e4aca65 commit c259561

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

parts/single-result.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@
6868
</tr>
6969
</table>
7070

71-
<?php if ( ! empty( $results['failures'] ) ) : ?>
71+
<?php
72+
if (
73+
! empty( $results['failures'] ) ||
74+
! empty( $results['errors'] )
75+
) :
76+
?>
7277
<h2>Errors/Failures</h2>
7378

7479
<?php

0 commit comments

Comments
 (0)