Check for empty arrays too

This commit is contained in:
Samuel Georges 2015-02-14 21:40:49 +11:00
parent 6bac3f9251
commit 24f3168ce6
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class FileUpload extends FormWidgetBase
$types = 'jpg,jpeg,bmp,png,gif,svg';
}
if (is_null($types)) {
if (!$types) {
return null;
}