Skip to content

Commit

Permalink
added another check for empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
ma4nn committed Dec 21, 2023
1 parent ce9d2a3 commit 80e6eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Downloadable/Helper/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected function _moveFileFromTmp($baseTmpPath, $basePath, $file)
*/
public function getFilePath($path, $file)
{
if ($file === null) {
if ($file === null || $file === '') {
return $path . DS;
}

Expand Down

0 comments on commit 80e6eb6

Please sign in to comment.