Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return false instead of Collection if adjacent item not found #3397

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Karmalakas
Copy link
Contributor

/system/src/Grav/Common/Page/Collection.php::adjacentSibling() could return back the whole Collection if previous or next sibling is not found. All other places in such case expect to return false.

Closes #3396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search for prev/next sibling returns Collection
1 participant