Skip to content

Commit

Permalink
Fixed bug response.join
Browse files Browse the repository at this point in the history
  • Loading branch information
mafftor committed May 1, 2020
1 parent 3663094 commit a4f647b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controllers/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function upload()
}

if (is_array($uploaded_files)) {
$response = count($error_bag) > 0 ? $error_bag : array(parent::$success_response);
$response = count($error_bag) > 0 ? $error_bag : parent::$success_response;
} else { // upload via ckeditor 'Upload' tab
if (is_null($new_filename)) {
$response = $error_bag[0];
Expand Down
2 changes: 1 addition & 1 deletion src/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
init: function() {
var _this = this; // For the closure
this.on('success', function(file, response) {
if (response == 'OK') {
if (response === 'OK') {
loadFolders();
} else {
this.defaultOptions.error(file, response.join('\n'));
Expand Down

0 comments on commit a4f647b

Please sign in to comment.