You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Prevent 'Undefined array key 1' when global Endpoint is requested
When multiple Endpoints are declared, and the frontend requests the global Endpoint (with only one path segment), accessing $segments[1] caused an 'Undefined array key' warning.
This commit adds a count($segments) check to avoid invalid index access and preserve compatibility with global Endpoint logic.
0 commit comments