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/box
|
@ -35,8 +35,8 @@ class BoxButton
|
|||
public function render( $baseURL )
|
||||
{
|
||||
$url = $this->URL;
|
||||
if ( $url{0} != ':' ) {
|
||||
if ( $url{0} != '/' ) {
|
||||
if ( $url[0] != ':' ) {
|
||||
if ( $url[0] != '/' ) {
|
||||
$url = "/$url";
|
||||
}
|
||||
$url = $baseURL . $url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue