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 82818d7 commit 5cd8727Copy full SHA for 5cd8727
app/code/Magento/Cms/Block/Adminhtml/Wysiwyg/Images/Tree.php
@@ -136,7 +136,7 @@ public function getTreeCurrentPath()
136
$path = $this->_coreRegistry->registry('storage')->getSession()->getCurrentPath();
137
}
138
139
- if ($path) {
+ if (strlen($path)) {
140
$path = str_replace($this->_cmsWysiwygImages->getStorageRoot(), '', $path);
141
$relative = [];
142
foreach (explode('/', $path) as $dirName) {
0 commit comments