1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-15 10:02:02 +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

@ -1877,7 +1877,7 @@ class e_db_mysql
/**
* Check for the existence of a matching language table when multi-language tables are active.
* @param string $table Name of table, without the prefix. or an array of table names.
* @param string|array $table Name of table, without the prefix. or an array of table names.
* @access private
* @return mixed the name of the language table (eg. lan_french_news) or an array of all matching language tables. (with mprefix)
*/

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