MINOR: Fixed FileField->Value() erroring when files value not set.

This commit is contained in:
ajshort 2011-12-26 19:08:08 +11:00
parent 3478e4f9e6
commit d692c22ee4

View File

@ -158,7 +158,7 @@ class FileField extends FormField {
}
public function Value() {
return $_FILES[$this->getName()];
return isset($_FILES[$this->getName()]) ? $_FILES[$this->getName()] : null;
}
/**