Skip to content

Commit 5cd8727

Browse files
committed
MAGETWO-87986: Media Folder Structure for CMS Images
Check for strlen of $path ('0' would be falsy)
1 parent 82818d7 commit 5cd8727

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Cms/Block/Adminhtml/Wysiwyg/Images

1 file changed

+1
-1
lines changed

app/code/Magento/Cms/Block/Adminhtml/Wysiwyg/Images/Tree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function getTreeCurrentPath()
136136
$path = $this->_coreRegistry->registry('storage')->getSession()->getCurrentPath();
137137
}
138138

139-
if ($path) {
139+
if (strlen($path)) {
140140
$path = str_replace($this->_cmsWysiwygImages->getStorageRoot(), '', $path);
141141
$relative = [];
142142
foreach (explode('/', $path) as $dirName) {

0 commit comments

Comments
 (0)