Skip to content

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

Open
Karmalakas wants to merge 1 commit intogetgrav:developfrom
Karmalakas:karmalakas/fix3396/adjacent-false-on-empty
Open

Return false instead of Collection if adjacent item not found#3397
Karmalakas wants to merge 1 commit intogetgrav:developfrom
Karmalakas:karmalakas/fix3396/adjacent-false-on-empty

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