From ff0d8efced4e95520b9e8bb7611e58d7c7af696d Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Thu, 4 May 2023 09:46:34 -0300 Subject: [PATCH] fix white screen when block is empty --- src/Plugin/Block/ReserveBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/Block/ReserveBlock.php b/src/Plugin/Block/ReserveBlock.php index 82956d0..f56528c 100644 --- a/src/Plugin/Block/ReserveBlock.php +++ b/src/Plugin/Block/ReserveBlock.php @@ -21,7 +21,7 @@ class ReserveBlock extends BlockBase { public function build() { $html = $this->getReserves(); if (empty($html)) { - return ''; + return []; } return [