From 83ef00350545b511cce223c3c732b49d99b5d59b Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:36:54 +0100 Subject: [PATCH] Update PostHogService.java --- .../java/stirling/software/SPDF/service/PostHogService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/stirling/software/SPDF/service/PostHogService.java b/src/main/java/stirling/software/SPDF/service/PostHogService.java index 25d88335..44fe8f60 100644 --- a/src/main/java/stirling/software/SPDF/service/PostHogService.java +++ b/src/main/java/stirling/software/SPDF/service/PostHogService.java @@ -54,7 +54,7 @@ public class PostHogService { } public void captureEvent(String eventName, Map properties) { - if (!Boolean.getBoolean(applicationProperties.getSystem().getEnableAnalytics())) { + if (!Boolean.parseBoolean(applicationProperties.getSystem().getEnableAnalytics())) { return; } postHog.capture(uniqueId, eventName, properties);