diff --git a/includes/box/view.inc.php b/includes/box/view.inc.php index 786c006..ce5b4ad 100644 --- a/includes/box/view.inc.php +++ b/includes/box/view.inc.php @@ -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; diff --git a/includes/core/page.inc.php b/includes/core/page.inc.php index ee08a65..f963a3b 100644 --- a/includes/core/page.inc.php +++ b/includes/core/page.inc.php @@ -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' ] diff --git a/includes/form/ctrl.inc.php b/includes/form/ctrl.inc.php index 0a38a66..e8f7067 100644 --- a/includes/form/ctrl.inc.php +++ b/includes/form/ctrl.inc.php @@ -76,7 +76,7 @@ class Ctrl_Form $url = $this->form->cancelURL( ); } - if ( $url{0} != '/' ) { + if ( $url[0] != '/' ) { $url = "/$url"; } return $page->getBaseURL( ) . $url; diff --git a/includes/form/view.inc.php b/includes/form/view.inc.php index 775a619..ce67583 100644 --- a/includes/form/view.inc.php +++ b/includes/form/view.inc.php @@ -105,8 +105,8 @@ class View_Form $prefix = $name . '-'; $action = $this->form->action( ); - if ( $action{0} != '?' ) { - if ( $action{0} != '/' ) { + if ( $action[0] != '?' ) { + if ( $action[0] != '/' ) { $action = "/$action"; } $action = $this->base . $action;