From 09b4471a5dbd67e29bf2de6276bcfd841c23e135 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 27 Nov 2011 19:05:54 -0600 Subject: [PATCH] fix file validation check in validator. --- laravel/validator.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/laravel/validator.php b/laravel/validator.php index c815f503..ffa541fa 100644 --- a/laravel/validator.php +++ b/laravel/validator.php @@ -219,10 +219,6 @@ protected function validate_required($attribute, $value) { return false; } - elseif (is_array($value) and count($value) == 0) - { - return false; - } elseif ( ! is_null(Input::file($attribute)) and $value['tmp_name'] == '') { return false;