Skip to content

Commit

Permalink
[FIX] Image browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seiger committed May 24, 2024
1 parent 0692c69 commit e33b3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/media/browser/mcpuk/core/browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ protected function getTree($dir, $index = 0)
if($index + 1 <=(count($path) - 1)) {
$dirs[$i]['dirs'] = $this->getTree($dir, $index + 1);
}
if (!is_array($dirs[$i]['dirs']) || !count($dirs[$i]['dirs'])) {
if (!isset($dirs[$i]['dirs']) || !is_array($dirs[$i]['dirs']) || !count($dirs[$i]['dirs'])) {
unset($dirs[$i]['dirs']);
continue;
}
Expand Down

0 comments on commit e33b3ec

Please sign in to comment.