From 2b785243e2f8dfe3422865f5876ea7b3ccfaf940 Mon Sep 17 00:00:00 2001 From: Sebastian Thulin Date: Wed, 2 Oct 2024 11:18:51 +0200 Subject: [PATCH] fix: if reciving image contract. Do not handle as array. --- source/php/Component/Block/Block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/php/Component/Block/Block.php b/source/php/Component/Block/Block.php index 8b8cba7a..833e5c16 100644 --- a/source/php/Component/Block/Block.php +++ b/source/php/Component/Block/Block.php @@ -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'; }