Skip to content

Commit

Permalink
NoFileIndex shoul not return top most folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lerni authored Jan 6, 2022
1 parent 960cab6 commit 8e320e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Extensions/FileIndexExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ public function NoFileIndex()
$parentIterInstance = $parentIterInstance->parent();
$counter++;
}
return $parentIterInstance;
if ($parentIterInstance->ID != 0) {
return $parentIterInstance;
}

} else {
return false;
Expand Down

0 comments on commit 8e320e9

Please sign in to comment.