aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-10-07 17:40:07 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-10-07 17:40:07 +0000
commit485935e1f1a3a773260cda0b7ac3f3800dca990e (patch)
treeef8a8069f948d96bc86787cc30ea8fe1e3239837 /phpBB/includes/functions_user.php
parenta7df65168c3380e50fbe84d8f9e74274b1cc74ff (diff)
downloadforums-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_user.php')
-rw-r--r--phpBB/includes/functions_user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 2807df8bd7..9dc6dcc4a7 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -1372,7 +1372,7 @@ function avatar_upload($data, &$error)
}
$destination = str_replace(array('../', '..\\', './', '.\\'), '', $destination);
- if ($destination && ($destination{0} == '/' || $destination{0} == "\\"))
+ if ($destination && ($destination[0] == '/' || $destination[0] == "\\"))
{
$destination = '';
}
@@ -1411,7 +1411,7 @@ function avatar_gallery($category, $avatar_select, $items_per_column, $block_var
while (($file = readdir($dp)) !== false)
{
- if ($file{0} != '.' && is_dir("$path/$file"))
+ if ($file[0] != '.' && is_dir("$path/$file"))
{
$avatar_row_count = $avatar_col_count = 0;