Skip to content

Commit

Permalink
Merge pull request #102 from VinsanityShred/master
Browse files Browse the repository at this point in the history
Fix for empty parent path
  • Loading branch information
Krato authored Nov 18, 2019
2 parents 5a8691e + 1d7dbb8 commit ccd92b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Services/GetFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ public function generateParent($folder)
if ($paths) {
$folderPath = $paths->implode('/');

if ($folderPath == $folder) {
if ($folderPath == $folder || strlen($folderPath) === 0) {
$folderPath = '/';
}

Expand Down

0 comments on commit ccd92b4

Please sign in to comment.