Skip to content

Commit

Permalink
Fix deprecation notice when attempting to resolve a non-static page (#37
Browse files Browse the repository at this point in the history
)

Co-authored-by: Luke Towers <[email protected]>
  • Loading branch information
gviabcua and LukeTowers authored Aug 14, 2023
1 parent a272cc3 commit add656a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ protected function extendCmsRenderer(): void
* Get rendered content
*/
$contents = Controller::instance()->getPageContents($page);
if (strlen($contents)) {
if (!empty($contents)) {
return $contents;
}
});
Expand Down

0 comments on commit add656a

Please sign in to comment.