diff --git a/lib/Pico.php b/lib/Pico.php index 6b0ef95..62174bf 100644 --- a/lib/Pico.php +++ b/lib/Pico.php @@ -962,8 +962,7 @@ class Pico try { $meta = $this->parseFileMeta($rawContent, $headers); } catch (\Symfony\Component\Yaml\Exception\ParseException $e) { - $meta = array_fill_keys(array_keys($headers), ''); - $meta['time'] = $meta['date_formatted'] = ''; + $meta = $this->parseFileMeta('', $headers); $meta['YAML_ParseError'] = $e->getMessage(); } } else {