fix: don't use {} for string access

This commit is contained in:
Emmanuel BENOîT 2025-01-05 18:58:29 +01:00
parent fbd561638f
commit 9a571832f5
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg
4 changed files with 6 additions and 6 deletions
includes/core

View file

@ -52,7 +52,7 @@ abstract class Page
}
}
} elseif ( ! is_null( $rc ) ) {
if ( $rc{0} != '/' ) {
if ( $rc[0] != '/' ) {
$rc = $this->baseURL . '/' . $rc;
}
$rc = ( ( array_key_exists( 'HTTPS' , $_SERVER ) && $_SERVER[ 'HTTPS' ] ) ? 'https' : 'http' ) . '://' . $_SERVER[ 'SERVER_NAME' ]