From c87ee5888d1bad1487d1483b0a1ae0dbe0bcaad1 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 20 Aug 2019 12:13:42 +0300 Subject: [PATCH] feat(core): update FrontmatterParser encode method #212 #186 - add additional check for $input['content'] --- flextype/parsers/FrontmatterParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flextype/parsers/FrontmatterParser.php b/flextype/parsers/FrontmatterParser.php index 492a3136..74b208b1 100644 --- a/flextype/parsers/FrontmatterParser.php +++ b/flextype/parsers/FrontmatterParser.php @@ -41,7 +41,7 @@ class FrontmatterParser public static function encode($input) : string { - if ($input['content']) { + if (isset($input['content'])) { $content = $input['content']; Arr::delete($input, 'content'); $matter = YamlParser::encode($input);