Skip to content

Commit

Permalink
Update Download.php
Browse files Browse the repository at this point in the history
  • Loading branch information
milindsingh authored Dec 29, 2018
1 parent d5b7745 commit 3285908
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/code/Magento/Downloadable/Helper/Download.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,11 @@ public function getContentType()
return $this->_downloadableFile->getFileType($this->_resourceFile);
}
} elseif ($this->_linkType == self::LINK_TYPE_URL) {
if(is_array($this->_handle->stat($this->_resourceFile)['type'])){
if (is_array($this->_handle->stat($this->_resourceFile)['type'])) {
return end($this->_handle->stat($this->_resourceFile)['type']);
}else
return $this->_handle->stat($this->_resourceFile)['type'];
} else {
return $this->_handle->stat($this->_resourceFile)['type'];
}
}
return $this->_contentType;
}
Expand Down

0 comments on commit 3285908

Please sign in to comment.