Skip to content

Commit dfeba48

Browse files
authored
Fixes snippet when option('debug') was null
#5
1 parent db48203 commit dfeba48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snippets/plausible.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<?php if(option('debug') === false && !kirby()->user()): ?>
1+
<?php if(option('debug') !== true && !kirby()->user()): ?>
22
<script defer data-domain="<?= option('floriankarsten.plausible.domain') ?? parse_url($kirby->url('index'))['host'] ?>" src="https://plausible.io/js/plausible.js"></script>
3-
<?php endif; ?>
3+
<?php endif; ?>

0 commit comments

Comments
 (0)