mirror of
https://github.com/flextype/flextype.git
synced 2025-08-19 11:21:30 +02:00
- add additional check for $input['content']
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user