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 ]), ];