From f4a5722b5e2b94ffa4255be767ff6a8c1cf247f0 Mon Sep 17 00:00:00 2001 From: Danny van Wijk Date: Mon, 15 Jul 2024 15:54:19 +0200 Subject: [PATCH] Check of extra data key is defined --- .../MultiDomainBundle/Twig/MultiDomainTwigExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kunstmaan/MultiDomainBundle/Twig/MultiDomainTwigExtension.php b/src/Kunstmaan/MultiDomainBundle/Twig/MultiDomainTwigExtension.php index 17fac90699..0f32c0d876 100644 --- a/src/Kunstmaan/MultiDomainBundle/Twig/MultiDomainTwigExtension.php +++ b/src/Kunstmaan/MultiDomainBundle/Twig/MultiDomainTwigExtension.php @@ -35,7 +35,7 @@ public function getExtraData($key) { $extraData = $this->domainConfiguration->getExtraData(); - if ($extraData[$key]) { + if (isset($extraData[$key])) { return $extraData[$key]; }