turnstile

Drupal paywall plugin
Log | Files | Refs | README | LICENSE

commit 9e06e6a45bc963fbce76bcdfd678ed9c2cf4976f
parent b0dcdee80c38e747b39cf3044bb2c7b9d871ae83
Author: Florian Dold <florian@dold.me>
Date:   Tue,  9 Dec 2025 17:04:22 +0100

fix config subscriber for empty original setting

Diffstat:
Msrc/EventSubscriber/TurnstileConfigSubscriber.php | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/EventSubscriber/TurnstileConfigSubscriber.php b/src/EventSubscriber/TurnstileConfigSubscriber.php @@ -88,8 +88,7 @@ class TurnstileConfigSubscriber implements EventSubscriberInterface { return; } if ($event->isChanged('enabled_content_types')) { - - $old_enabled_types = $config->getOriginal('enabled_content_types'); + $old_enabled_types = $config->getOriginal('enabled_content_types') ?? []; $new_enabled_types = $config->get('enabled_content_types'); // Find content types to add and remove.