diff options
author | David M <davidmj@users.sourceforge.net> | 2006-12-26 20:49:20 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2006-12-26 20:49:20 +0000 |
commit | 677dc5d2e11c3209fcaf798e4b44588a9305328f (patch) | |
tree | 94f2f1dc3338accc5d4f441179ea2c897fcb3e90 | |
parent | 1d8e391d195fd61ce363bbfa18a1bec7257186b4 (diff) | |
download | forums-677dc5d2e11c3209fcaf798e4b44588a9305328f.tar forums-677dc5d2e11c3209fcaf798e4b44588a9305328f.tar.gz forums-677dc5d2e11c3209fcaf798e4b44588a9305328f.tar.bz2 forums-677dc5d2e11c3209fcaf798e4b44588a9305328f.tar.xz forums-677dc5d2e11c3209fcaf798e4b44588a9305328f.zip |
#6598
- should have fixed all uses of curly braces
git-svn-id: file:///svn/phpbb/trunk@6813 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/functions_user.php | 6 | ||||
-rw-r--r-- | phpBB/includes/message_parser.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index a8fb455cdf..0ac9b7b97b 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -1406,13 +1406,13 @@ function avatar_upload($data, &$error) $destination = $config['avatar_path']; - if ($destination{(sizeof($destination)-1)} == '/' || $destination{(sizeof($destination)-1)} == '\\') + if ($destination[sizeof($destination) - 1] == '/' || $destination[sizeof($destination) - 1] == '\\') { - $destination = substr($destination, 0, sizeof($destination)-2); + $destination = substr($destination, 0, -1); } $destination = str_replace(array('../', '..\\', './', '.\\'), '', $destination); - if ($destination && ($destination[0] == '/' || $destination[0] == "\\")) + if ($destination && ($destination[0] == '/' || $destination[0] == '\\')) { $destination = ''; } diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index 9751ab676e..07ba6c5b00 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -445,7 +445,7 @@ class bbcode_firstpass extends bbcode $code = preg_replace('#(?:[\n\r\s\t]| )*</span>$#u', '</span>', $code); // remove newline at the end - if (!empty($code) && $code{strlen($code)-1} == "\n") + if (!empty($code) && $code[strlen($code) - 1] == "\n") { $code = substr($code, 0, -1); } |