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:
mudrd8mz 2009-08-03 10:54:29 +00:00
parent 0a127169fe
commit 29afd52b10

View File

@ -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');
}