Changed a line which causes "illegal string offset" error to be thrown in php5.4 on trying to access $value['tmp_name']

This commit is contained in:
kapv89 2012-05-29 14:04:06 +05:30
parent 639d64c584
commit 86a5fd0739
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ protected function validate_required($attribute, $value)
{
return false;
}
elseif ( ! is_null(Input::file($attribute)) and $value['tmp_name'] == '')
elseif ( ! is_null(Input::file($attribute)) and is_array($value) and $value['tmp_name'] == '')
{
return false;
}