Explorar el Código

Fix Pico::parseFileMeta()

Daniel Rudolf hace 7 años
padre
commit
e8a19cb2f9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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'] = '';
         }