Skip to content

Guard against missing siblings on the styles demo page - #448

Merged
iMattPro merged 1 commit into
phpbb:3.3.xfrom
ECYaz:fix/demo-sibling-boundary
Jul 31, 2026
Merged

Guard against missing siblings on the styles demo page#448
iMattPro merged 1 commit into
phpbb:3.3.xfrom
ECYaz:fix/demo-sibling-boundary

Conversation

@ECYaz

@ECYaz ECYaz commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Fixes #447

sibling() returns false for the first and last style in the demo list, and assign_details() read the url and id from it anyway. The prev and next arrows now fall back to their disabled state.

sibling() returns false for the first and last style in the demo list,
and assign_details() read the url and id from it anyway. Harmless on
production where the notice is suppressed, but any board running with
DEBUG gets an error page instead of the demo.
@iMattPro
iMattPro merged commit b3dda6b into phpbb:3.3.x Jul 31, 2026
6 checks passed
@ECYaz
ECYaz deleted the fix/demo-sibling-boundary branch August 1, 2026 10:07
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.

Styles demo page breaks at the ends of the style list

2 participants