From 29afd52b1035df696fcdd055eafaf5411e583d4f Mon Sep 17 00:00:00 2001 From: mudrd8mz Date: Mon, 3 Aug 2009 10:54:29 +0000 Subject: [PATCH] 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) --- pluginfile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pluginfile.php b/pluginfile.php index 7a5bf6e80c..1585040e6e 100644 --- a/pluginfile.php +++ b/pluginfile.php @@ -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'); } -- 2.39.5