From 2c278c1fdecf6c4e72994c3f84fe942ff5f0fd8e Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Thu, 17 Sep 2015 18:19:37 +0200 Subject: [PATCH] Fix saving pages when removing the page title and all other header elements --- system/src/Grav/Common/Page/Page.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 7979b46d4..aa99879e8 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -821,7 +821,9 @@ class Page { $blueprints = $this->blueprints(); $values = $blueprints->filter($this->toArray()); - $this->header($values['header']); + if ($values && isset($values['header'])) { + $this->header($values['header']); + } } /**