Check for empty arrays too
This commit is contained in:
parent
6bac3f9251
commit
24f3168ce6
|
|
@ -133,7 +133,7 @@ class FileUpload extends FormWidgetBase
|
|||
$types = 'jpg,jpeg,bmp,png,gif,svg';
|
||||
}
|
||||
|
||||
if (is_null($types)) {
|
||||
if (!$types) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue