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:
@@ -249,7 +249,7 @@ class Validator {
|
|||||||
{
|
{
|
||||||
return false;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user