Ubuntu 4a93b5efa0 Fix undefined array key in header on short URLs
The language switcher in barber/beauty headers reads
$currentPageUrlArray[2] unguarded after exploding REQUEST_URI on '/'.
On routes with no language prefix (e.g. POST /manage-booking-cancel
rendering the cancelled page inline), the array has only 2 elements,
triggering "Undefined array key 2" warnings and producing malformed
language links like https://studiobeve.no/en//.

Normalize the array with += [2 => '', 3 => ''] right after the explode
so indices 2 and 3 always exist.
2026-05-11 19:28:33 +00:00
2025-10-04 11:38:07 +02:00
2026-05-07 13:03:05 +00:00
2025-10-04 11:38:07 +02:00
2025-10-04 11:38:07 +02:00
2025-10-04 11:38:07 +02:00
2025-10-04 11:38:07 +02:00
2025-10-04 11:38:07 +02:00
2025-10-04 11:38:07 +02:00
2025-10-04 11:38:07 +02:00
2025-10-04 11:38:07 +02:00
2025-10-04 11:38:07 +02:00
S
Description
No description provided
Readme
82 MiB
Languages
PHP 64%
CSS 19.1%
SCSS 6.9%
HTML 6.7%
JavaScript 3.2%
Other 0.1%