diff options
Diffstat (limited to 'tdd/tdd-bootstrap.php')
-rw-r--r-- | tdd/tdd-bootstrap.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tdd/tdd-bootstrap.php b/tdd/tdd-bootstrap.php index 1dbb368..04bbb0b 100644 --- a/tdd/tdd-bootstrap.php +++ b/tdd/tdd-bootstrap.php @@ -118,6 +118,11 @@ class Protocol { $table->find('tr', 0)->class = 'tdd-header'; // marking default header as navigable header for JS foreach ($groupedBoards as $boardId => $groupedBoard) { if ($boardId === 'default') { + // there are no tables for default hand record, clear the default table entirely (strip headers, footers etc.) + if (!$groupedBoard) { + $table->innertext = ''; + continue; + } $innerTable = $table->find('td/table', 0); $rows = $innerTable->find('tr'); $firstRow = array_shift($rows); // board record header (with the board number) |