Skip to content

Commit 05c44e7

Browse files
committed
fix debug panel for PHP 8.1 [closes #166]
1 parent 05276f8 commit 05c44e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bridges/NetteTracy/ConnectionPanel.panel.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ namespace Nextras\Dbal\Bridges\NetteTracy;
8383
<table class="tracy-collapsed nextras-dbal-explain">
8484
<tr>
8585
<?php foreach ($explain[0] as $col => $foo): ?>
86-
<th><?php echo htmlSpecialChars($col, ENT_NOQUOTES, 'UTF-8') ?></th>
86+
<th><?php echo htmlSpecialChars($col ?? '', ENT_NOQUOTES, 'UTF-8') ?></th>
8787
<?php endforeach ?>
8888
</tr>
8989
<?php foreach ($explain as $row): ?>
9090
<tr>
9191
<?php foreach ($row as $col): ?>
92-
<td class="<?php echo $whitespaceExplain ? 'whitespace-explain' : '' ?>"><?php echo htmlSpecialChars($col, ENT_NOQUOTES, 'UTF-8') ?></td>
92+
<td class="<?php echo $whitespaceExplain ? 'whitespace-explain' : '' ?>"><?php echo htmlSpecialChars($col ?? '', ENT_NOQUOTES, 'UTF-8') ?></td>
9393
<?php endforeach ?>
9494
</tr>
9595
<?php endforeach ?>

0 commit comments

Comments
 (0)