From 7cb18568e329133864f454ffe3255504e18b6a20 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 28 Oct 2020 17:06:25 +0000 Subject: [PATCH] During uploads (including replacements), 'data' should be an array of files, fixes #735 --- ext/upload/main.php | 2 +- ext/upload/theme.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/upload/main.php b/ext/upload/main.php index a7715752..40a06268 100644 --- a/ext/upload/main.php +++ b/ext/upload/main.php @@ -332,7 +332,7 @@ class Upload extends Extension // blank file boxes cause empty uploads, no need for error message if (!empty($file['name'])) { - $size = sizeof($file['name']); + $size = count($file['name']); $limit = $config->get_int(UploadConfig::COUNT); try { if ($size > $limit) { diff --git a/ext/upload/theme.php b/ext/upload/theme.php index b2c9fb33..65fa5a05 100644 --- a/ext/upload/theme.php +++ b/ext/upload/theme.php @@ -152,7 +152,7 @@ class UploadTheme extends Themelet $upload_list = " File - + "; if ($tl_enabled) {