Skip to content

Commit 5cc82ec

Browse files
authored
Merge pull request #858 from HalfBottleOfMind/#532
upload returns array
2 parents 8bcf423 + ea368cc commit 5cc82ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/UploadController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function upload()
4343
}
4444

4545
if (is_array($uploaded_files)) {
46-
$response = count($error_bag) > 0 ? $error_bag : parent::$success_response;
46+
$response = count($error_bag) > 0 ? $error_bag : array(parent::$success_response);
4747
} else { // upload via ckeditor 'Upload' tab
4848
if (is_null($new_filename)) {
4949
$response = $error_bag[0];

0 commit comments

Comments
 (0)