Refactoring Input class.

This commit is contained in:
Taylor Otwell
2011-07-08 08:24:57 -07:00
parent c2b7e60bdd
commit c5a2752e8a

View File

@@ -78,7 +78,7 @@ class Input {
{
list($file, $key) = explode('.', $key);
return (isset($_FILES[$file][$key])) ? $_FILES[$file][$key] : $default;
return Arr::get($_FILES[$file], $key, $default);
}
return Arr::get($_FILES, $key, $default);