mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
he braces style is deprecated as of PHP 6
git-svn-id: file:///svn/phpbb/trunk@6459 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -536,7 +536,7 @@ class bbcode
|
||||
$username = str_replace('\"', '"', $username);
|
||||
|
||||
// remove newline at the beginning
|
||||
if ($quote{0} == "\n")
|
||||
if ($quote[0] == "\n")
|
||||
{
|
||||
$quote = substr($quote, 1);
|
||||
}
|
||||
@@ -572,7 +572,7 @@ class bbcode
|
||||
$code = str_replace(' ', ' ', $code);
|
||||
|
||||
// remove newline at the beginning
|
||||
if (!empty($code) && $code{0} == "\n")
|
||||
if (!empty($code) && $code[0] == "\n")
|
||||
{
|
||||
$code = substr($code, 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user