From 00e5ff9e2e9c0dd7325f33a22888d6888af4b197 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 7 Sep 2015 22:51:44 +0200 Subject: [ticket/13904] Add unit tests for local upload type PHPBB3-13904 --- phpBB/phpbb/files/types/local.php | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'phpBB/phpbb') diff --git a/phpBB/phpbb/files/types/local.php b/phpBB/phpbb/files/types/local.php index 96bfdaca7f..ff11890856 100644 --- a/phpBB/phpbb/files/types/local.php +++ b/phpBB/phpbb/files/types/local.php @@ -84,19 +84,7 @@ class local extends base return $file; } - if (isset($upload['error'])) - { - $error = $this->upload->assign_internal_error($upload['error']); - - if ($error !== false) - { - $file->error[] = $error; - return $file; - } - } - // PHP Upload file size check - $this->check_upload_size($file); $file = $this->check_upload_size($file); if (sizeof($file->error)) { -- cgit v1.2.1