mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
Issue #2078
This commit is contained in:
@@ -105,7 +105,7 @@ class submitNews
|
||||
}
|
||||
|
||||
// ==== Process File Upload ====
|
||||
if (FILE_UPLOADS && !empty($_FILES['file_userfile']) && vartrue($pref['subnews_attach']) && vartrue($pref['upload_enabled']) && check_class($pref['upload_class']))
|
||||
if (FILE_UPLOADS && !empty($_FILES['file_userfile']['name'][0]) && vartrue($pref['subnews_attach']) && vartrue($pref['upload_enabled']) && check_class($pref['upload_class']))
|
||||
{
|
||||
$uploaded = e107::getFile()->getUploaded(e_UPLOAD, 'unique', array('file_mask' => 'jpg,gif,png', 'max_file_count' => 3));
|
||||
|
||||
|
Reference in New Issue
Block a user