Skip to content

Commit

Permalink
Merge pull request #84 from WordPress/fix-error-reports
Browse files Browse the repository at this point in the history
check for failures AND errors
  • Loading branch information
pfefferle authored Sep 11, 2020
2 parents e4aca65 + c259561 commit 6a9951a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion parts/single-result.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@
</tr>
</table>

<?php if ( ! empty( $results['failures'] ) ) : ?>
<?php
if (
! empty( $results['failures'] ) ||
! empty( $results['errors'] )
) :
?>
<h2>Errors/Failures</h2>

<?php
Expand Down

0 comments on commit 6a9951a

Please sign in to comment.