Skip to content

Commit

Permalink
main: Check if Posthog key is set in enabled check
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian committed Mar 16, 2024
1 parent 7781465 commit 7208439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelPosthog.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct()

private function posthogEnabled(): bool
{
if (!config('posthog.enabled')) {
if (!config('posthog.enabled') || config('posthog.key') === '') {
return false;
}

Expand Down

0 comments on commit 7208439

Please sign in to comment.