Skip to content

Commit

Permalink
fix: if reciving image contract. Do not handle as array.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Oct 2, 2024
1 parent d22e132 commit 2b78524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/php/Component/Block/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function init()

$this->data['floatingSlotHasData'] = $this->slotHasData('floating');

if ($image && !isset($image['backgroundColor'])) {
if ($image && is_array($image) && !isset($image['backgroundColor'])) {
$this->data['image']['backgroundColor'] = 'primary';
}

Expand Down

0 comments on commit 2b78524

Please sign in to comment.