diff --git a/README.md b/README.md index 879e23a..a82a7bf 100644 --- a/README.md +++ b/README.md @@ -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