Fixing some E_NOTICE bugs around the date header

This commit is contained in:
William Duyck 2013-08-24 19:09:13 +01:00
parent 641f7c334d
commit eac175ea82

View file

@ -163,7 +163,7 @@ class Pico {
}
}
if($headers['date']) $headers['date_formatted'] = date($config['date_format'], strtotime($headers['date']));
if(isset($headers['date'])) $headers['date_formatted'] = date($config['date_format'], strtotime($headers['date']));
if(empty($headers['title'])){
preg_match('/^(.+?)[ ]*\n(=+|-+)[ ]*\n+/imu',$content,$matches);