walkor преди 3 години
родител
ревизия
6652d4929d
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      src/Protocols/Http/Request.php

+ 4 - 0
src/Protocols/Http/Request.php

@@ -586,6 +586,10 @@ class Request
         }
         $files_unique = [];
         foreach ($files as $index => $file) {
+            if (!isset($file['key'])) {
+                unset($files[$index]);
+                continue;
+            }
             $key = $file['key'];
             if (\substr($key, -2) === '[]') {
                 $key = $index;