Skip to content

Commit

Permalink
Merge pull request silverstripe#269 from creative-commoners/pulls/3/doc
Browse files Browse the repository at this point in the history
DOC Update readme example
  • Loading branch information
GuySartorelli authored Nov 20, 2023
2 parents 25671da + 946d92a commit be3100d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ $field = StringTagField::create(
'Tags',
'Tags',
['one', 'two'],
explode(',', $this->Tags)
explode(',', $this->Tags ?: '')
);

$field->setShouldLazyLoad(true); // tags should be lazy loaded
Expand Down

0 comments on commit be3100d

Please sign in to comment.