|
89 | 89 | $healthcheck = new stack_cas_healthcheck($config); |
90 | 90 | $tab = ''; |
91 | 91 | foreach ($healthcheck->get_test_results() as $test) { |
92 | | - $tl = ''; |
93 | | - if (true === $test['result']) { |
94 | | - $tl .= html_writer::tag('td', stack_string('testsuitepass')); |
95 | | - } else if (false === $test['result']) { |
96 | | - $tl .= html_writer::tag('td', stack_string('testsuitefail')); |
97 | | - } else { |
98 | | - $tl .= html_writer::tag('td', ' '); |
| 92 | + if ($test['summary']) { |
| 93 | + $tl = ''; |
| 94 | + if (true === $test['result']) { |
| 95 | + $tl .= html_writer::tag('td', stack_string('testsuitepass')); |
| 96 | + } else if (false === $test['result']) { |
| 97 | + $tl .= html_writer::tag('td', stack_string('testsuitefail')); |
| 98 | + } else { |
| 99 | + $tl .= html_writer::tag('td', ' '); |
| 100 | + } |
| 101 | + $tl .= html_writer::tag('td', $test['summary']); |
| 102 | + $tab .= html_writer::tag('tr', $tl) . "\n"; |
99 | 103 | } |
100 | | - $tl .= html_writer::tag('td', $test['summary']); |
101 | | - $tab .= html_writer::tag('tr', $tl) . "\n"; |
102 | 104 | } |
103 | | -echo html_writer::tag('table', $tab); |
| 105 | +echo html_writer::tag('table', $tab, ['class' => 'generaltable table']); |
104 | 106 | if ($healthcheck->get_overall_result()) { |
105 | 107 | echo html_writer::tag('p', stack_string('healthcheckpass'), ['class' => 'overallresult pass']); |
106 | 108 | } else { |
|
0 commit comments