1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00
This commit is contained in:
Cameron
2017-09-18 12:20:39 -07:00
parent 0fda16e713
commit bed4336571
2 changed files with 2 additions and 2 deletions

View File

@@ -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));