Skip to content

Commit e33b3ec

Browse files
committed
[FIX] Image browser.
1 parent 0692c69 commit e33b3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/media/browser/mcpuk/core/browser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ protected function getTree($dir, $index = 0)
10351035
if($index + 1 <=(count($path) - 1)) {
10361036
$dirs[$i]['dirs'] = $this->getTree($dir, $index + 1);
10371037
}
1038-
if (!is_array($dirs[$i]['dirs']) || !count($dirs[$i]['dirs'])) {
1038+
if (!isset($dirs[$i]['dirs']) || !is_array($dirs[$i]['dirs']) || !count($dirs[$i]['dirs'])) {
10391039
unset($dirs[$i]['dirs']);
10401040
continue;
10411041
}

0 commit comments

Comments
 (0)