1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 13:11:52 +02:00

Wrong max_file_count handling (upload handler)

This commit is contained in:
SecretR 2013-10-19 01:47:01 +03:00
parent e6146ae068
commit 575973e10c

View File

@ -194,7 +194,7 @@ function process_uploaded_files($uploaddir, $fileinfo = FALSE, $options = NULL)
$admin_log->
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
}