From a5f1e83ff1ae6364d66ec847ec7bea6710129a09 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Tue, 4 Mar 2025 21:05:08 +1100 Subject: [PATCH] PHP 8.4 --- Plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugin.php b/Plugin.php index 27359d5..0d68b94 100644 --- a/Plugin.php +++ b/Plugin.php @@ -114,7 +114,7 @@ public function boot() // Get rendered content $contents = Controller::instance()->getPageContents($page); - if (strlen($contents)) { + if ($contents && strlen($contents)) { return $contents; } }); @@ -127,7 +127,7 @@ public function boot() } $contents = Controller::instance()->getPlaceholderContents($page, $blockName, $blockContents); - if (strlen($contents)) { + if ($contents && strlen($contents)) { return $contents; } });