diff options
-rw-r--r-- | includes/file.inc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/includes/file.inc b/includes/file.inc index 4495aca9d..73d513703 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -1085,8 +1085,6 @@ function file_validate_name_length($file) { * @see hook_file_validate() */ function file_validate_extensions($file, $extensions) { - global $user; - $errors = array(); $regex = '/\.(' . preg_replace('/ +/', '|', preg_quote($extensions)) . ')$/i'; |