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:
+1
-1
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user