fix: don't use {}
for string access
This commit is contained in:
parent
fbd561638f
commit
9a571832f5
4 changed files with 6 additions and 6 deletions
includes/core
|
@ -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' ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue