Skip to content

Commit

Permalink
fix substr() (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebakernz authored Nov 14, 2023
1 parent 79c47d4 commit eae97c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/MetaPreviewField.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private function getPageMetaTitle()
**/
private function getPageMetaLink()
{
return Director::absoluteBaseURL().substr($this->page->Link(), 1);
return Director::absoluteBaseURL().substr($this->page->Link() ?? '', 1);
}

/**
Expand Down

0 comments on commit eae97c6

Please sign in to comment.