Merge pull request #15404 from jfcherng/fix-php74-curly-braces
Fix PHP 7.4 deprecation: array/string curly braces access
This commit is contained in:
commit
a0c4786fcb
@ -3872,7 +3872,7 @@ class Privileges
|
||||
}
|
||||
$drop_user_error = '';
|
||||
foreach ($queries as $sql_query) {
|
||||
if ($sql_query{0} != '#') {
|
||||
if ($sql_query[0] != '#') {
|
||||
if (! $GLOBALS['dbi']->tryQuery($sql_query)) {
|
||||
$drop_user_error .= $GLOBALS['dbi']->getError() . "\n";
|
||||
}
|
||||
@ -4119,7 +4119,7 @@ class Privileges
|
||||
{
|
||||
$tmp_count = 0;
|
||||
foreach ($queries as $sql_query) {
|
||||
if ($sql_query{0} != '#') {
|
||||
if ($sql_query[0] != '#') {
|
||||
$GLOBALS['dbi']->query($sql_query);
|
||||
}
|
||||
// when there is a query containing a hidden password, take it
|
||||
|
||||
@ -248,7 +248,7 @@ class Url
|
||||
if (mb_strpos($arg_separator, ';') !== false) {
|
||||
$separator = ';';
|
||||
} elseif (strlen($arg_separator) > 0) {
|
||||
$separator = $arg_separator{0};
|
||||
$separator = $arg_separator[0];
|
||||
} else {
|
||||
$separator = '&';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user