From 8bbc8b73e9bb15115c3a0fa91cca233ea4caebef Mon Sep 17 00:00:00 2001 From: Ian Morland Date: Thu, 12 Oct 2023 08:54:40 +0100 Subject: [PATCH] fix: conditional extender workaround --- extend.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extend.php b/extend.php index e408339..1283eb7 100644 --- a/extend.php +++ b/extend.php @@ -70,9 +70,9 @@ ->registerPreference('draftAutosaveEnable', 'boolVal', false) ->registerPreference('draftAutosaveInterval', 'intVal', 6), - (new Extend\Conditional()) + (new Extend\Conditional()) ->whenExtensionEnabled('blomstra-gdpr', [ - (new UserData()) - ->addType(Data\Drafts::class), + class_exists(UserData::class) ? (new UserData()) + ->addType(Data\Drafts::class) : null ]), ];