return empty result

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-06-17 22:04:25 +02:00
parent 0f50f8d1d9
commit a83b50bb97
5 changed files with 14 additions and 11 deletions

View File

@@ -112,7 +112,7 @@ class FileService implements IAttachmentService {
];
if (empty($file)) {
$error = $this->l10n->t('No file uploaded');
$error = $this->l10n->t('No file uploaded');
}
if (!empty($file) && array_key_exists('error', $file) && $file['error'] !== UPLOAD_ERR_OK) {
$error = $phpFileUploadErrors[$file['error']];