Skip to content

Commit a4f647b

Browse files
committed
Fixed bug response.join
1 parent 3663094 commit a4f647b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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 : array(parent::$success_response);
46+
$response = count($error_bag) > 0 ? $error_bag : parent::$success_response;
4747
} else { // upload via ckeditor 'Upload' tab
4848
if (is_null($new_filename)) {
4949
$response = $error_bag[0];

src/views/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
init: function() {
241241
var _this = this; // For the closure
242242
this.on('success', function(file, response) {
243-
if (response == 'OK') {
243+
if (response === 'OK') {
244244
loadFolders();
245245
} else {
246246
this.defaultOptions.error(file, response.join('\n'));

0 commit comments

Comments
 (0)