From d1c7554c1edfa4a66a1c6d8af387bd1ebcb990ce Mon Sep 17 00:00:00 2001 From: Tim Kung Date: Thu, 24 Mar 2016 16:00:08 +1300 Subject: [PATCH] Upload_Validator fixing getAllowedMaxFileSize to correctly return * value --- filesystem/Upload.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/filesystem/Upload.php b/filesystem/Upload.php index 1e18f3789..e6974186f 100644 --- a/filesystem/Upload.php +++ b/filesystem/Upload.php @@ -416,11 +416,9 @@ class Upload_Validator { if ($category && isset($this->allowedMaxFileSize['[' . $category . ']'])) { return $this->allowedMaxFileSize['[' . $category . ']']; } - - return false; - } else { - return (isset($this->allowedMaxFileSize['*'])) ? $this->allowedMaxFileSize['*'] : false; } + + return (isset($this->allowedMaxFileSize['*'])) ? $this->allowedMaxFileSize['*'] : false; } /**