Skip to content

Commit

Permalink
PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Mar 4, 2025
1 parent 4c1fd49 commit a5f1e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function boot()

// Get rendered content
$contents = Controller::instance()->getPageContents($page);
if (strlen($contents)) {
if ($contents && strlen($contents)) {
return $contents;
}
});
Expand All @@ -127,7 +127,7 @@ public function boot()
}

$contents = Controller::instance()->getPlaceholderContents($page, $blockName, $blockContents);
if (strlen($contents)) {
if ($contents && strlen($contents)) {
return $contents;
}
});
Expand Down

0 comments on commit a5f1e83

Please sign in to comment.