Skip to content

Commit

Permalink
Merge pull request #4 from kevinmeijer97/patch-1
Browse files Browse the repository at this point in the history
Fix Undefined array key "scripts" error
  • Loading branch information
simonridley authored Jul 28, 2022
2 parents 9667471 + 3b78473 commit 8ed303a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TrackingCodeTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function createLink(string $tag): string
->merge(YAML::file(base_path('content/tracking-codes.yaml'))->parse())
->all();

if($values['enabled'] == false){
if(!isset($values['enabled']) || $values['enabled'] == false || !isset($values['scripts'])){
return '';
}

Expand Down

0 comments on commit 8ed303a

Please sign in to comment.