From c5232ef5ac47c5be01df37b528713032f12a6a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Indrek=20K=C3=B5nnussaar?= Date: Mon, 7 Dec 2020 01:23:07 +0200 Subject: [PATCH] Prevent fatal when rendering global blocks due to no passed blockName --- src/Blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Blocks.php b/src/Blocks.php index 8323e85..382e14a 100644 --- a/src/Blocks.php +++ b/src/Blocks.php @@ -320,7 +320,7 @@ public function getBuilder($postId = null, $blockName = null) $postId = $this->resolvePostId($postId); if (!isset($this->builders[$postId])) { - if (!$this->building) { + if (!$this->building || $postId === 'option') { $this->building = true; $this->builders[$postId] = $this->createContentBuilder($postId); } else {