mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Wrong max_file_count handling (upload handler)
This commit is contained in:
@@ -194,7 +194,7 @@ function process_uploaded_files($uploaddir, $fileinfo = FALSE, $options = NULL)
|
|||||||
$admin_log->
|
$admin_log->
|
||||||
e_log_event(10, __FILE__."|".__FUNCTION__."@".__LINE__, "DEBUG", "Upload Handler test", "Process file {$name}, size ".$files['size'][$key], FALSE, FALSE);
|
e_log_event(10, __FILE__."|".__FUNCTION__."@".__LINE__, "DEBUG", "Upload Handler test", "Process file {$name}, size ".$files['size'][$key], FALSE, FALSE);
|
||||||
|
|
||||||
if ($max_file_count && ($c > $max_file_count))
|
if ($max_file_count && ($c >= $max_file_count))
|
||||||
{
|
{
|
||||||
$first_error = 249; // 'Too many files uploaded' error
|
$first_error = 249; // 'Too many files uploaded' error
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user