Update FileValidator.php

fix tabs
This commit is contained in:
Zhandos
2014-03-10 23:17:29 +05:00
parent b3b9bd353e
commit 2e84fcb0b0

View File

@ -229,9 +229,9 @@ class FileValidator extends Validator
*/
public function isEmpty($value, $trim = false)
{
$value = is_array($value) && !empty($value) ? $value[0] : $value;
$value = is_array($value) && !empty($value) ? $value[0] : $value;
return !$value instanceof UploadedFile || $value->error == UPLOAD_ERR_NO_FILE;
return !$value instanceof UploadedFile || $value->error == UPLOAD_ERR_NO_FILE;
}
/**