Skip to content

Commit

Permalink
Fix bug when block attributes is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Feb 7, 2023
1 parent 8626283 commit 6125bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DebugBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function buildBlock($block)
*/
protected function buildAttrs(array $block): array
{
$attrs = $block['attrs'];
$attrs = $block['attrs'] ?: [];

if (isset($attrs['align']) && empty($attrs['align'])) {
unset($attrs['align']);
Expand Down

0 comments on commit 6125bbf

Please sign in to comment.