From 43f953b67af22b084501b337010e0421a8745313 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Mon, 21 Dec 2015 04:08:35 +0100 Subject: [PATCH] Pico::readPages(): Call Pico::parseFileMeta() again when a exception is thrown --- lib/Pico.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 {