mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
Fixed accessing the first character from string{0} to string[0]
"...Strings may also be accessed using braces, as in $str{42}, for the same purpose. However, this syntax is deprecated as of PHP 6. Use square brackets instead." (http://cz2.php.net/manual/en/language.types.string.php)
This commit is contained in:
parent
0a127169fe
commit
29afd52b10
@ -36,7 +36,7 @@ $forcedownload = optional_param('forcedownload', 0, PARAM_BOOL);
|
||||
// relative path must start with '/'
|
||||
if (!$relativepath) {
|
||||
print_error('invalidargorconf');
|
||||
} else if ($relativepath{0} != '/') {
|
||||
} else if ($relativepath[0] != '/') {
|
||||
print_error('pathdoesnotstartslash');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user