From 77f55e1e3c884bb06d39d08009faa55e87fd6740 Mon Sep 17 00:00:00 2001 From: devskio <138782632+devskio@users.noreply.github.com> Date: Fri, 26 Sep 2025 16:26:05 +0200 Subject: [PATCH] fixes Warning: Undefined array key "events" --- Classes/Domain/Model/Action.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/Domain/Model/Action.php b/Classes/Domain/Model/Action.php index 49ba196..6e46a16 100644 --- a/Classes/Domain/Model/Action.php +++ b/Classes/Domain/Model/Action.php @@ -40,7 +40,9 @@ class Action */ public function __construct(array $configuration) { - $this->setEvents($configuration['events']); + if (array_key_exists('events', $configuration)) { + $this->setEvents($configuration['events']); + } if (array_key_exists('referrers', $configuration)) { $this->setReferrers($configuration['referrers']);