瀏覽代碼

Fix Pico::parseFileMeta()

Daniel Rudolf 7 年之前
父節點
當前提交
e8a19cb2f9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Pico.php

+ 1 - 1
lib/Pico.php

@@ -1346,7 +1346,7 @@ class Pico
             }
         } else {
             // guarantee array key existance
-            $meta = array_fill_keys(array_keys($headers), '');
+            $meta = array_fill_keys(array_values($headers), '');
             $meta['time'] = $meta['date_formatted'] = '';
         }