diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-10-07 17:40:07 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-10-07 17:40:07 +0000 |
commit | 485935e1f1a3a773260cda0b7ac3f3800dca990e (patch) | |
tree | ef8a8069f948d96bc86787cc30ea8fe1e3239837 /phpBB/includes/functions.php | |
parent | a7df65168c3380e50fbe84d8f9e74274b1cc74ff (diff) | |
download | forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.tar forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.tar.gz forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.tar.bz2 forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.tar.xz forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.zip |
he braces style is deprecated as of PHP 6
git-svn-id: file:///svn/phpbb/trunk@6459 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 4bb99f737d..96c999e3ea 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1490,7 +1490,7 @@ function redirect($url) { // Full URL } - else if ($url{0} == '/') + else if ($url[0] == '/') { // Absolute uri, prepend direct url... $url = generate_board_url(true) . $url; @@ -2510,7 +2510,7 @@ function parse_cfg_file($filename, $lines = false) { $line = trim($line); - if (!$line || $line{0} == '#' || ($delim_pos = strpos($line, '=')) === false) + if (!$line || $line[0] == '#' || ($delim_pos = strpos($line, '=')) === false) { continue; } @@ -2531,7 +2531,7 @@ function parse_cfg_file($filename, $lines = false) { $value = ''; } - else if (($value{0} == "'" && $value{sizeof($value)-1} == "'") || ($value{0} == '"' && $value{sizeof($value)-1} == '"')) + else if (($value[0] == "'" && $value[sizeof($value) - 1] == "'") || ($value[0] == '"' && $value[sizeof($value) - 1] == '"')) { $value = substr($value, 1, sizeof($value)-2); } |