Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
gmachure committed Nov 16, 2018
1 parent f1e7e3f commit a7b9122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/File/Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ private function _setUploadFileId($fileId)

preg_match("/^(.*?)\[(.*?)\]$/", $fileId, $file);

if (is_array($file) && count($file) > 0 && !empty($file[0]) && (isset($file[1]) && !empty($file[1]))) {
if (is_array($file) && count($file) > 0 && !empty($file[0]) && !empty($file[1])) {
array_shift($file);
$this->_uploadType = self::MULTIPLE_STYLE;

Expand Down

1 comment on commit a7b9122

@sumeetmobiwebtech
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i changed then getting this error in console - Uncaught ReferenceError: Base64 is not defined

Please sign in to comment.