1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-19 11:21:30 +02:00

feat(core): update FrontmatterParser encode method #212 #186

- add additional check for $input['content']
This commit is contained in:
Awilum
2019-08-20 12:13:42 +03:00
parent ed64b71687
commit c87ee5888d

View File

@@ -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);