We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf30fd8 commit 2ed9df5Copy full SHA for 2ed9df5
app/code/Magento/MediaGallery/Plugin/Wysiwyg/Images/Storage.php
@@ -122,6 +122,6 @@ private function getMediaDirectoryRelativePath(string $path): string
122
{
123
$relativePath = $this->filesystem->getDirectoryRead(DirectoryList::MEDIA)->getRelativePath($path);
124
125
- return (false === strpos($relativePath, '/')) ? '/' . $relativePath : $relativePath;
+ return ($relativePath && false === strpos($relativePath, '/')) ? '/' . $relativePath : $relativePath;
126
}
127
0 commit comments